DataModels дополнен

This commit is contained in:
анна 2024-04-29 16:05:32 +04:00
parent de154b4345
commit 7c1ec9ce8d
11 changed files with 131 additions and 8 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="SearchModels\" />
</ItemGroup>
</Project>

View File

@ -1,7 +0,0 @@
namespace UniversityDataModels
{
public class Class1
{
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace UniversityDataModels
{
public interface IEmployeeModel
public interface IEmployeeModel : IClientModel
{
string Post { get; }
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}