diff --git a/BeautySalon/BeautySalonDBModels/ISpecialisation.cs b/BeautySalon/BeautySalonDBModels/AbstractWorkWithStorage.cs similarity index 61% rename from BeautySalon/BeautySalonDBModels/ISpecialisation.cs rename to BeautySalon/BeautySalonDBModels/AbstractWorkWithStorage.cs index ca3db02..d3856d7 100644 --- a/BeautySalon/BeautySalonDBModels/ISpecialisation.cs +++ b/BeautySalon/BeautySalonDBModels/AbstractWorkWithStorage.cs @@ -6,9 +6,8 @@ using System.Threading.Tasks; namespace BeautySalonDBModels { - public interface ISpecialisation + public abstract class AbstractWorkWithStorage { - int SpecialisationId { get; } - string Name { get; } + public abstract void AddClient(Clien); } } diff --git a/BeautySalon/BeautySalonDBModels/BeautySalonDBModels.csproj b/BeautySalon/BeautySalonDBModels/BeautySalonDBModels.csproj index a578900..5318b80 100644 --- a/BeautySalon/BeautySalonDBModels/BeautySalonDBModels.csproj +++ b/BeautySalon/BeautySalonDBModels/BeautySalonDBModels.csproj @@ -8,6 +8,7 @@ + diff --git a/BeautySalon/BeautySalonDBModels/ICheque.cs b/BeautySalon/BeautySalonDBModels/ICheque.cs deleted file mode 100644 index 5cf6063..0000000 --- a/BeautySalon/BeautySalonDBModels/ICheque.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BeautySalonDBModels -{ - public interface ICheque - { - int ChequeId { get; } - int ClientId { get; } - string ReceptionId { get; } - } -} diff --git a/BeautySalon/BeautySalonDBModels/IClient.cs b/BeautySalon/BeautySalonDBModels/IClient.cs deleted file mode 100644 index e351b71..0000000 --- a/BeautySalon/BeautySalonDBModels/IClient.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BeautySalonDBModels -{ - public interface IClient - { - int ClientId { get; } - string FIO { get; } - int Age { get; } - } -} diff --git a/BeautySalon/BeautySalonDBModels/IMaster.cs b/BeautySalon/BeautySalonDBModels/IMaster.cs deleted file mode 100644 index 1accf98..0000000 --- a/BeautySalon/BeautySalonDBModels/IMaster.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BeautySalonDBModels -{ - public interface IMaster - { - int MasterId { get; } - int SpecialisationId { get; } - string FIO { get; } - } -} diff --git a/BeautySalon/BeautySalonDBModels/IReception.cs b/BeautySalon/BeautySalonDBModels/IReception.cs deleted file mode 100644 index e85cd2b..0000000 --- a/BeautySalon/BeautySalonDBModels/IReception.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BeautySalonDBModels -{ - public interface IReception - { - int ReceptionId { get; } - int MasterId { get; } - int ServiceId { get; } - DateTime DateReception { get; } - } -} diff --git a/BeautySalon/BeautySalonDBModels/IService.cs b/BeautySalon/BeautySalonDBModels/IService.cs deleted file mode 100644 index cafd066..0000000 --- a/BeautySalon/BeautySalonDBModels/IService.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BeautySalonDBModels -{ - public interface IService - { - int ServiceId { get; } - string ServiceName { get; } - double Price { get; } - int SpecialisationId { get; } - } -} diff --git a/BeautySalon/BeautySalonDBModels/Models/Cheque.cs b/BeautySalon/BeautySalonDBModels/Models/Cheque.cs new file mode 100644 index 0000000..7c76c02 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/Models/Cheque.cs @@ -0,0 +1,9 @@ +namespace BeautySalonDBModels.Models +{ + public class Cheque + { + public int ChequeId { get; } + public int ClientId { get; } + public int ReceptionId { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/Models/Client.cs b/BeautySalon/BeautySalonDBModels/Models/Client.cs new file mode 100644 index 0000000..c7ec72a --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/Models/Client.cs @@ -0,0 +1,9 @@ +namespace BeautySalonDBModels.Models +{ + public class Client + { + public int ClientId { get; } + public string FIO { get; } = string.Empty; + public int Age { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/Models/Master.cs b/BeautySalon/BeautySalonDBModels/Models/Master.cs new file mode 100644 index 0000000..c37652e --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/Models/Master.cs @@ -0,0 +1,9 @@ +namespace BeautySalonDBModels.Models +{ + public class Master + { + public int MasterId { get; } + public int SpecialisationId { get; } + public string FIO { get; } = string.Empty; + } +} diff --git a/BeautySalon/BeautySalonDBModels/Models/Reception.cs b/BeautySalon/BeautySalonDBModels/Models/Reception.cs new file mode 100644 index 0000000..b1c5712 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/Models/Reception.cs @@ -0,0 +1,10 @@ +namespace BeautySalonDBModels.Models +{ + public class Reception + { + public int ReceptionId { get; } + public int MasterId { get; } + public int ServiceId { get; } + public DateTime DateReception { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/Models/Service.cs b/BeautySalon/BeautySalonDBModels/Models/Service.cs new file mode 100644 index 0000000..e324b69 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/Models/Service.cs @@ -0,0 +1,10 @@ +namespace BeautySalonDBModels.Models +{ + public class Service + { + public int ServiceId { get; } + public string ServiceName { get; } = string.Empty; + public double Price { get; } + public int SpecialisationId { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/Models/Specialisation.cs b/BeautySalon/BeautySalonDBModels/Models/Specialisation.cs new file mode 100644 index 0000000..100f457 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/Models/Specialisation.cs @@ -0,0 +1,8 @@ +namespace BeautySalonDBModels.Models +{ + public class Specialisation + { + public int SpecialisationId { get; } + public string Name { get; } = string.Empty; + } +}