diff --git a/LawFirm/LawFirmContracts/BusinessLogicContracts/IBlankLogic.cs b/LawFirm/LawFirmContracts/BusinessLogicContracts/IBlankLogic.cs new file mode 100644 index 0000000..844a7ca --- /dev/null +++ b/LawFirm/LawFirmContracts/BusinessLogicContracts/IBlankLogic.cs @@ -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? ReadList(BlankSearchModel? model); + BlankViewModel? ReadElement(BlankSearchModel model); + bool Create(BlankBindingModel model); + bool Update(BlankBindingModel model); + bool Delete(BlankBindingModel model); + } +} diff --git a/LawFirm/LawFirmContracts/BusinessLogicContracts/IDocumentLogic.cs b/LawFirm/LawFirmContracts/BusinessLogicContracts/IDocumentLogic.cs new file mode 100644 index 0000000..9f34856 --- /dev/null +++ b/LawFirm/LawFirmContracts/BusinessLogicContracts/IDocumentLogic.cs @@ -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? ReadList(DocumentSearchModel? model); + DocumentViewModel? ReadElement(DocumentSearchModel model); + bool Create(DocumentBindingModel model); + bool Update(DocumentBindingModel model); + bool Delete(DocumentBindingModel model); + } +} diff --git a/LawFirm/LawFirmContracts/BusinessLogicContracts/IOrderLogic.cs b/LawFirm/LawFirmContracts/BusinessLogicContracts/IOrderLogic.cs new file mode 100644 index 0000000..557d867 --- /dev/null +++ b/LawFirm/LawFirmContracts/BusinessLogicContracts/IOrderLogic.cs @@ -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? ReadList(OrderSearchModel? model); + bool CreateOrder(OrderBindingModel model); + bool TakeOrderInWork(OrderBindingModel model); + bool FinishOrder(OrderBindingModel model); + bool DeliveryOrder(OrderBindingModel model); + } +} diff --git a/LawFirm/LawFirmContracts/ViewModels/OrderViewModel.cs b/LawFirm/LawFirmContracts/ViewModels/OrderViewModel.cs index 5aebf70..be30e43 100644 --- a/LawFirm/LawFirmContracts/ViewModels/OrderViewModel.cs +++ b/LawFirm/LawFirmContracts/ViewModels/OrderViewModel.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace LawFirmContracts.ViewModels { - internal class OrderViewModel : IOrderModel + public class OrderViewModel : IOrderModel { public int DocumentId { get; set; }