DataModels дополнен
This commit is contained in:
parent
de154b4345
commit
7c1ec9ce8d
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityContracts.BindingModels;
|
||||
using UniversityContracts.ViewModels;
|
||||
|
||||
namespace UniversityContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IEmployeeLogic
|
||||
{
|
||||
EmployeeViewModel ReadElement(EmployeeSearchModel model);
|
||||
bool Create(EmployeeBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityContracts.BindingModels;
|
||||
|
||||
namespace UniversityContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IPaymentLogic
|
||||
{
|
||||
List<PaymentViewModel> ReadList(PaymentSearchModel model);
|
||||
PaymentViewModel ReadElement(PaymentSearchModel model);
|
||||
bool Create(PaymentBindingModel model);
|
||||
|
||||
bool GetPaymentInfo(PaymentSearchModel model, out double fullPrice, out double paidPrice);
|
||||
}
|
||||
}
|
@ -6,4 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="SearchModels\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -1,7 +0,0 @@
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
16
University/UniversityDataModels/IClassModel.cs
Normal file
16
University/UniversityDataModels/IClassModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public interface IClassModel : IId
|
||||
{
|
||||
int EmployeeId { get; }
|
||||
string Name { get; }
|
||||
string Time { get; }
|
||||
double Price { get; }
|
||||
}
|
||||
}
|
18
University/UniversityDataModels/IClientModel.cs
Normal file
18
University/UniversityDataModels/IClientModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
string Login { get; }
|
||||
string FirstName { get; }
|
||||
string LastName { get; }
|
||||
string? MiddleName { get; }
|
||||
string Birthday { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
16
University/UniversityDataModels/ICostModel.cs
Normal file
16
University/UniversityDataModels/ICostModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public interface ICostModel : IId
|
||||
{
|
||||
int EmployeeId { get; }
|
||||
string NameOfCost { get; }
|
||||
double Price { get; }
|
||||
string Discription { get; }
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public interface IEmployeeModel
|
||||
public interface IEmployeeModel : IClientModel
|
||||
{
|
||||
string Post { get; }
|
||||
}
|
||||
|
13
University/UniversityDataModels/IId.cs
Normal file
13
University/UniversityDataModels/IId.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
15
University/UniversityDataModels/IPaymentModel.cs
Normal file
15
University/UniversityDataModels/IPaymentModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
internal interface IPaymentModel : IId
|
||||
{
|
||||
double PaidPrice { get; }
|
||||
DateOnly Date { get; }
|
||||
int ClassByPurchaseId { get; }
|
||||
}
|
||||
}
|
14
University/UniversityDataModels/IPurchaseModel.cs
Normal file
14
University/UniversityDataModels/IPurchaseModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UniversityDataModels
|
||||
{
|
||||
public interface IPurchaseModel : IId
|
||||
{
|
||||
int ClientId { get; }
|
||||
DateOnly DatePurchase { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user