Demka/Demka-2/Use/Service.cs

19 lines
512 B
C#
Raw Permalink Normal View History

2024-12-27 09:47:44 +00:00
using System;
2024-12-27 12:48:34 +00:00
using System.ComponentModel.DataAnnotations;
2024-12-27 09:47:44 +00:00
namespace Demka_2.Use;
public class Service
{
2024-12-27 12:48:34 +00:00
[Key]
2024-12-27 09:47:44 +00:00
public Guid guid { get; set; }
public string Name { get; set; }
2024-12-27 11:47:18 +00:00
public string ImagePath { get; set; }
public decimal Price { get; set; }
public decimal Discount { get; set; }
public int Duration { get; set; }
public string Description { get; set; }
public decimal FinalPrice => Price * (1 - Discount / 100);
public bool CanDelete { get; set; } = true;
}