Upload project.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ThAmCo.Events.Models
|
||||
{
|
||||
public class EventTypeDto
|
||||
{
|
||||
[Required, MaxLength(3), MinLength(3)]
|
||||
public string TypeId { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ThAmCo.Events.Models.Dto
|
||||
{
|
||||
public class MenuDTO
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Items { get; set; }
|
||||
|
||||
public double Price { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ThAmCo.Events.Models
|
||||
{
|
||||
public class ReservationCreateDto
|
||||
{
|
||||
[Required, DataType(DataType.Date)]
|
||||
public DateTime EventDate { get; set; }
|
||||
|
||||
[Required, MinLength(5), MaxLength(5)]
|
||||
public string VenueCode { get; set; }
|
||||
|
||||
[Required]
|
||||
public string StaffId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ThAmCo.Events.Models
|
||||
{
|
||||
public class ReservationDto
|
||||
{
|
||||
public string Reference { get; set; }
|
||||
|
||||
public DateTime EventDate { get; set; }
|
||||
|
||||
public string VenueCode { get; set; }
|
||||
|
||||
public DateTime whenMade { get; set; }
|
||||
|
||||
public string StaffId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ThAmCo.Events.Models
|
||||
{
|
||||
public class VenueDto
|
||||
{
|
||||
public string Code { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public int Capacity { get; set; }
|
||||
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
public double CostPerHour { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user