Demka/Demka-2/Use/Service.cs

13 lines
364 B
C#
Raw Permalink Normal View History

namespace Demka_2.Use;
public class Service
{
public string Name { 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;
}