BusinessLogicsContracts
This commit is contained in:
parent
e38fd78481
commit
75879c0592
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace FurnitureContracts.ViewModel
|
namespace FurnitureContracts.ViewModel
|
||||||
{
|
{
|
||||||
public class HeadsetViewModel
|
public class HeadsetViewModel : IHeadsetModel
|
||||||
{
|
{
|
||||||
public int Cost { get; set; }
|
public int Cost { get; set; }
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace FurnitureContracts.ViewModel
|
namespace FurnitureContracts.ViewModel
|
||||||
{
|
{
|
||||||
public class OrdersViewModel
|
public class OrdersViewModel : IOrdersModel
|
||||||
{
|
{
|
||||||
[DisplayName("Дата заказа")]
|
[DisplayName("Дата заказа")]
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace FurnitureContracts.ViewModel
|
namespace FurnitureContracts.ViewModel
|
||||||
{
|
{
|
||||||
public class RoleViewModel
|
public class RoleViewModel : IRoleModel
|
||||||
{
|
{
|
||||||
[DisplayName("Название роли")]
|
[DisplayName("Название роли")]
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace FurnitureContracts.ViewModel
|
namespace FurnitureContracts.ViewModel
|
||||||
{
|
{
|
||||||
public class SalesSalonsViewModel
|
public class SalesSalonsViewModel : ISalesSalonsModel
|
||||||
{
|
{
|
||||||
[DisplayName("Название")]
|
[DisplayName("Название")]
|
||||||
public string Name { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
|
Loading…
Reference in New Issue
Block a user