Skip to content
Snippets Groups Projects
Commit b4f1d327 authored by snemeckayova's avatar snemeckayova
Browse files

Add Event DTOs

parent d2a3c1a3
No related branches found
No related tags found
2 merge requests!46Milestone-2,!29IssueEventService, EventCommentService, EventParticipantService Implementation
using System.ComponentModel.DataAnnotations;
namespace BusinessLayer.DTOs.Event
{
public class EventCreateDTO
{
[Required]
public Guid CreatorId { get; set; }
[Required]
public Guid RestaurantId { get; set; }
[Required]
[MaxLength(200)]
public string Title { get; set; }
[Required]
[MaxLength(2000)]
public string Content { get; set; }
[Required]
public DateTime Date { get; set; }
}
}
using BusinessLayer.DTOs.Restaurant;
namespace BusinessLayer.DTOs.Event
{
public class EventDTO
{
public Guid Id { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public DateTime Date { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public DateTime? DeletedAt { get; set; }
public RestaurantDTO Restaurant { get; set; }
}
}
using System.ComponentModel.DataAnnotations;
namespace BusinessLayer.DTOs.Event
{
public class EventUpdateDTO
{
[MaxLength(200)]
public string? Title { get; set; }
[MaxLength(2000)]
public string? Content { get; set; }
public DateTime? Date { get; set; }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment