2024-06-17 14:04:22 +04:00
|
|
|
|
using DataModels.Models;
|
|
|
|
|
using System;
|
2024-06-11 12:18:10 +04:00
|
|
|
|
using System.Collections.Generic;
|
2024-06-17 14:04:22 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-06-11 12:18:10 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DatabaseImplement.Models
|
|
|
|
|
{
|
2024-06-17 14:04:22 +04:00
|
|
|
|
public class Product : IProduct
|
2024-06-11 12:18:10 +04:00
|
|
|
|
{
|
2024-06-17 14:04:22 +04:00
|
|
|
|
[Required]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
[Required]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public double Rate { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public bool IsBeingSold { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int Amount { get; set; }
|
2024-06-11 12:18:10 +04:00
|
|
|
|
}
|
|
|
|
|
}
|