BusinessLogicsContracts

This commit is contained in:
FLARJ 2023-04-05 22:59:20 +04:00
parent e38fd78481
commit 75879c0592
5 changed files with 19 additions and 4 deletions

View File

@ -0,0 +1,15 @@
using FurnitureContracts.BindingModels;
using FurnitureContracts.SearchModels;
using FurnitureContracts.ViewModel;
namespace FurnitureContracts.BusinessLogicsContracts
{
public class IOrdersLogic
{
List<OrdersViewModel>? ReadList(OrderSearchModel? model);
OrdersViewModel? ReadElement(OrderSearchModel model);
bool Create(OrdersBindingModel model);
bool Update(OrdersBindingModel model);
bool Delete(OrdersBindingModel model);
}
}

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel
{
public class HeadsetViewModel
public class HeadsetViewModel : IHeadsetModel
{
public int Cost { get; set; }

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel
{
public class OrdersViewModel
public class OrdersViewModel : IOrdersModel
{
[DisplayName("Дата заказа")]
public DateTime Date { get; set; }

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
namespace FurnitureContracts.ViewModel
{
public class RoleViewModel
public class RoleViewModel : IRoleModel
{
[DisplayName("Название роли")]
public string Name { get; set; } = string.Empty;

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
namespace FurnitureContracts.ViewModel
{
public class SalesSalonsViewModel
public class SalesSalonsViewModel : ISalesSalonsModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;