SUBD_SushiBar/SushiBar/SushiBarContracts/ViewModels/TaskViewModel.cs

34 lines
880 B
C#

using SushiBarDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarContracts.ViewModels
{
public class TaskViewModel : ITaskModel
{
[DisplayName("Номер")]
public int Id { get; set; }
[DisplayName("Дата заказа")]
public DateTime TaskDate { get; set; } = DateTime.Now;
[DisplayName("Статус заказа")]
public SushiBarDataModels.Enum.TaskStatus Status { get; set; }
[DisplayName("Сумма")]
public double FullPrice { get; set; }
public int PlaceId { get; set; }
public int CookId { get; set; }
public int BuyerId { get; set; }
public Dictionary<int, (IMenuModel, int)> TaskMenus { get; set; } = new();
}
}