public int ReservationID { get; set; } public string? FirstName { get; set; } public string? LastName { get; set; } public string? Adress { get; set; } public string? City { get; set; } public string? Email { get; set; } public int GuestsComing { get; set; } public DateTime? Date { get; set; } public TimeSpan? Time { get; set; } public List<Menu> ChoosenMenus { get; set; } public decimal FoodPrice { get; set; } public int? UserFK { get; set; }
public int[] menuIds { get; set; }orpublic List<int> menuIds { get; set; }
public void AddReservation(Reservation reservation) { _dbContext.Reservations.Add(reservation); _dbContext.SaveChanges(); }