diff --git a/Bank/BankBusinessLogics/BankBusinessLogics.csproj b/Bank/BankBusinessLogics/BankBusinessLogics.csproj index 1a65821..b84bde0 100644 --- a/Bank/BankBusinessLogics/BankBusinessLogics.csproj +++ b/Bank/BankBusinessLogics/BankBusinessLogics.csproj @@ -8,6 +8,7 @@ + diff --git a/Bank/BankContracts/BindingModels/ClientBindingModel.cs b/Bank/BankContracts/BindingModels/ClientBindingModel.cs index de133ff..14054a6 100644 --- a/Bank/BankContracts/BindingModels/ClientBindingModel.cs +++ b/Bank/BankContracts/BindingModels/ClientBindingModel.cs @@ -3,10 +3,12 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using BankDataModels; +using BankDataModels.HelperInterfaces; namespace BankContracts.BindingModels { - internal class ClientBindingModel : IClientModel + public class ClientBindingModel : IClientModel { public string FirstName { get; set; } = string.Empty; diff --git a/Bank/BankContracts/BindingModels/PaymentBindingModel.cs b/Bank/BankContracts/BindingModels/PaymentBindingModel.cs index 2c753f9..46ef434 100644 --- a/Bank/BankContracts/BindingModels/PaymentBindingModel.cs +++ b/Bank/BankContracts/BindingModels/PaymentBindingModel.cs @@ -3,10 +3,11 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using BankDataModels; namespace BankContracts.BindingModels { - internal class PaymentBindingModel : IPaymentModel + public class PaymentBindingModel : IPaymentModel { public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now); diff --git a/Bank/BankContracts/BindingModels/PurchaseBindingModel.cs b/Bank/BankContracts/BindingModels/PurchaseBindingModel.cs index 8685861..35c0183 100644 --- a/Bank/BankContracts/BindingModels/PurchaseBindingModel.cs +++ b/Bank/BankContracts/BindingModels/PurchaseBindingModel.cs @@ -3,10 +3,12 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using BankDataModels; +using BankDataModels.ProxyModels; namespace BankContracts.BindingModels { - internal class PurchaseBindingModel : IPurchaseModel + public class PurchaseBindingModel : IPurchaseModel { public int ClientId { get; set; } public DateOnly DatePurchase { get; set; } diff --git a/Bank/BankContracts/SearchModels/ClientSearchModel.cs b/Bank/BankContracts/SearchModels/ClientSearchModel.cs index 88a10be..f263323 100644 --- a/Bank/BankContracts/SearchModels/ClientSearchModel.cs +++ b/Bank/BankContracts/SearchModels/ClientSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace BankContracts.SearchModels { - internal class ClientSearchModel + public class ClientSearchModel { public int? Id { get; set; } public string? PhoneNumber { get; set; } diff --git a/Bank/BankContracts/SearchModels/CostSearchModel.cs b/Bank/BankContracts/SearchModels/CostSearchModel.cs index 81b6e65..8cc4d67 100644 --- a/Bank/BankContracts/SearchModels/CostSearchModel.cs +++ b/Bank/BankContracts/SearchModels/CostSearchModel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; + namespace BankContracts.SearchModels { public class CostSearchModel diff --git a/Bank/BankContracts/SearchModels/EmployeeSearchModel.cs b/Bank/BankContracts/SearchModels/EmployeeSearchModel.cs index 6d83017..4b43c09 100644 --- a/Bank/BankContracts/SearchModels/EmployeeSearchModel.cs +++ b/Bank/BankContracts/SearchModels/EmployeeSearchModel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; + namespace BankContracts.SearchModels { public class EmployeeSearchModel diff --git a/Bank/BankContracts/SearchModels/OperationSearchModel.cs b/Bank/BankContracts/SearchModels/OperationSearchModel.cs index 9843a41..27798a2 100644 --- a/Bank/BankContracts/SearchModels/OperationSearchModel.cs +++ b/Bank/BankContracts/SearchModels/OperationSearchModel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; + namespace BankContracts.SearchModels { public class OperationSearchModel diff --git a/Bank/BankContracts/SearchModels/PaymentSearchModel.cs b/Bank/BankContracts/SearchModels/PaymentSearchModel.cs index a2b7454..a47853a 100644 --- a/Bank/BankContracts/SearchModels/PaymentSearchModel.cs +++ b/Bank/BankContracts/SearchModels/PaymentSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace BankContracts.SearchModels { - internal class PaymentSearchModel + public class PaymentSearchModel { public int? Id { get; set; } public int? OperationId { get; set; } diff --git a/Bank/BankContracts/SearchModels/PurchaseSearchModel.cs b/Bank/BankContracts/SearchModels/PurchaseSearchModel.cs index 6b80754..abaa30b 100644 --- a/Bank/BankContracts/SearchModels/PurchaseSearchModel.cs +++ b/Bank/BankContracts/SearchModels/PurchaseSearchModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace BankContracts.SearchModels { - internal class PurchaseSearchModel + public class PurchaseSearchModel { public int? Id { get; set; } public DateOnly? DateTo { get; set; } diff --git a/Bank/BankDataModels/IClientModel.cs b/Bank/BankDataModels/IClientModel.cs index d65c46e..f15d17a 100644 --- a/Bank/BankDataModels/IClientModel.cs +++ b/Bank/BankDataModels/IClientModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BankDataModels { - internal class IClientModel : IId + public interface IClientModel : IId { string Email { get; } string FirstName { get; } diff --git a/Bank/BankDataModels/IPaymentModel.cs b/Bank/BankDataModels/IPaymentModel.cs index b060139..b324464 100644 --- a/Bank/BankDataModels/IPaymentModel.cs +++ b/Bank/BankDataModels/IPaymentModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BankDataModels { - internal class IPaymentModel : IId + public interface IPaymentModel : IId { double PaidPrice { get; } DateOnly Date { get; } diff --git a/Bank/BankDataModels/IPurchaseModel.cs b/Bank/BankDataModels/IPurchaseModel.cs index be65742..5172bfb 100644 --- a/Bank/BankDataModels/IPurchaseModel.cs +++ b/Bank/BankDataModels/IPurchaseModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BankDataModels { - internal class IPurchaseModel : IId + public interface IPurchaseModel : IId { int ClientId { get; } DateOnly DatePurchase { get; } diff --git a/Bank/BankDataModels/ProxyModels/CostByPurchaseModel.cs b/Bank/BankDataModels/ProxyModels/CostByPurchaseModel.cs index 73827c0..1493c02 100644 --- a/Bank/BankDataModels/ProxyModels/CostByPurchaseModel.cs +++ b/Bank/BankDataModels/ProxyModels/CostByPurchaseModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BankDataModels.ProxyModels { - internal class CostByPurchaseModel : IId + public class CostByPurchaseModel : IId { public virtual int Id { get; set; } public virtual int CostId { get; set; } diff --git a/Bank/BankDataModels/ProxyModels/OperationByPurchaseModel.cs b/Bank/BankDataModels/ProxyModels/OperationByPurchaseModel.cs index af8d8af..41d3285 100644 --- a/Bank/BankDataModels/ProxyModels/OperationByPurchaseModel.cs +++ b/Bank/BankDataModels/ProxyModels/OperationByPurchaseModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BankDataModels.ProxyModels { - internal class OperationByPurchaseModel : IId + public class OperationByPurchaseModel : IId { public virtual int Id { get; set; } public virtual int OperationId { get; set; }