переопределила метод то стринг в классах мастер, прием, услуга
This commit is contained in:
parent
d2cf0e10b7
commit
e6621ffa08
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
namespace BeautySalonDBModels.Models
|
using System.Data.SqlTypes;
|
||||||
|
|
||||||
|
namespace BeautySalonDBModels.Models
|
||||||
{
|
{
|
||||||
public class Reception
|
public class Reception
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user