Создание интерфейсов моделей данных для роли Поставщик. Фикс поля в IDealModel.

This commit is contained in:
ksenianeva 2023-04-01 21:50:53 +04:00
parent fe8c375d93
commit 1b293e9ab9
5 changed files with 62 additions and 1 deletions

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

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

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

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

View File

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