переопределила метод то стринг в классах мастер, прием, услуга

This commit is contained in:
Елена Бакальская 2024-05-08 12:35:29 +04:00
parent d2cf0e10b7
commit e6621ffa08
3 changed files with 13 additions and 1 deletions

View File

@ -5,5 +5,10 @@
public int MasterId { get; set; } public int MasterId { get; set; }
public int SpecialisationId { get; set; } public int SpecialisationId { get; set; }
public string FIO { get; set; } = string.Empty; public string FIO { get; set; } = string.Empty;
public override string ToString()
{
return FIO;
}
} }
} }

View File

@ -1,4 +1,6 @@
namespace BeautySalonDBModels.Models using System.Data.SqlTypes;
namespace BeautySalonDBModels.Models
{ {
public class Reception public class Reception
{ {

View File

@ -6,5 +6,10 @@
public string ServiceName { get; set; } = string.Empty; public string ServiceName { get; set; } = string.Empty;
public double Price { get; set; } public double Price { get; set; }
public int SpecialisationId { get; set; } public int SpecialisationId { get; set; }
public override string ToString()
{
return ServiceName;
}
} }
} }