Созданы контракты бизнес логики

This commit is contained in:
Данила Мочалов 2023-01-28 19:50:37 +04:00
parent b3d06a206a
commit a19bf4142b
4 changed files with 61 additions and 1 deletions

View File

@ -0,0 +1,20 @@
using LawFirmContracts.BindingModels;
using LawFirmContracts.SearchModels;
using LawFirmContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawFirmContracts.BusinessLogicContracts
{
public interface IBlankLogic
{
List<BlankViewModel>? ReadList(BlankSearchModel? model);
BlankViewModel? ReadElement(BlankSearchModel model);
bool Create(BlankBindingModel model);
bool Update(BlankBindingModel model);
bool Delete(BlankBindingModel model);
}
}

View File

@ -0,0 +1,20 @@
using LawFirmContracts.BindingModels;
using LawFirmContracts.SearchModels;
using LawFirmContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawFirmContracts.BusinessLogicContracts
{
public interface IDocumentLogic
{
List<DocumentViewModel>? ReadList(DocumentSearchModel? model);
DocumentViewModel? ReadElement(DocumentSearchModel model);
bool Create(DocumentBindingModel model);
bool Update(DocumentBindingModel model);
bool Delete(DocumentBindingModel model);
}
}

View File

@ -0,0 +1,20 @@
using LawFirmContracts.BindingModels;
using LawFirmContracts.SearchModels;
using LawFirmContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawFirmContracts.BusinessLogicContracts
{
public interface IOrderLogic
{
List<OrderViewModel>? ReadList(OrderSearchModel? model);
bool CreateOrder(OrderBindingModel model);
bool TakeOrderInWork(OrderBindingModel model);
bool FinishOrder(OrderBindingModel model);
bool DeliveryOrder(OrderBindingModel model);
}
}

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace LawFirmContracts.ViewModels namespace LawFirmContracts.ViewModels
{ {
internal class OrderViewModel : IOrderModel public class OrderViewModel : IOrderModel
{ {
public int DocumentId { get; set; } public int DocumentId { get; set; }