Создание интерфейсов моделей данных для роли Поставщик. Фикс поля в IDealModel.
This commit is contained in:
parent
fe8c375d93
commit
1b293e9ab9
17
Bank/BankDataModels/Models/IBankOperatorModel.cs
Normal file
17
Bank/BankDataModels/Models/IBankOperatorModel.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BankDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IBankOperatorModel : IId
|
||||||
|
{
|
||||||
|
string Login { get; }
|
||||||
|
string Password { get; }
|
||||||
|
string FirstName { get; }
|
||||||
|
string LastName { get; }
|
||||||
|
string? MiddleName { get; }
|
||||||
|
}
|
||||||
|
}
|
15
Bank/BankDataModels/Models/ICreditProgramModel.cs
Normal file
15
Bank/BankDataModels/Models/ICreditProgramModel.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BankDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ICreditProgramModel : IId
|
||||||
|
{
|
||||||
|
string Name { get;}
|
||||||
|
int Persent { get;}
|
||||||
|
Dictionary<int, ICurrencyModel> Currencies { get; }
|
||||||
|
}
|
||||||
|
}
|
13
Bank/BankDataModels/Models/ICurrencyModel.cs
Normal file
13
Bank/BankDataModels/Models/ICurrencyModel.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BankDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ICurrencyModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
}
|
||||||
|
}
|
16
Bank/BankDataModels/Models/ICurrencyPurchaseModel.cs
Normal file
16
Bank/BankDataModels/Models/ICurrencyPurchaseModel.cs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BankDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ICurrencyPurchaseModel : IId
|
||||||
|
{
|
||||||
|
float Amount { get; }
|
||||||
|
DateTime PurchaseDate { get;}
|
||||||
|
int BankOperatorId { get; }
|
||||||
|
int CurrencyId { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -9,7 +9,7 @@ namespace BankDataModels.Models
|
|||||||
public interface IDealModel : IId
|
public interface IDealModel : IId
|
||||||
{
|
{
|
||||||
int ClientId { get; }
|
int ClientId { get; }
|
||||||
DateTime Date { get; }
|
DateTime DealDate { get; }
|
||||||
int OperatorId { get; }
|
int OperatorId { get; }
|
||||||
int CreditProgramId { get; }
|
int CreditProgramId { get; }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user