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

This commit is contained in:
Валерия Никифорова 2023-01-31 22:03:00 +04:00
parent a7b5099bf5
commit ef2c302fcc
5 changed files with 61 additions and 2 deletions

View File

@ -11,7 +11,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="BusinessLogicsContracts\" />
<Folder Include="StoragesContracts\" />
</ItemGroup>

View File

@ -0,0 +1,20 @@
using AircraftPlantContracts.BindingModels;
using AircraftPlantContracts.SearchModels;
using AircraftPlantContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.BusinessLogicsContracts
{
public interface IComponentLogic
{
List<ComponentViewModel>? ReadList(ComponentSearchModel? model);
ComponentViewModel? ReadElement(ComponentSearchModel model);
bool Create(ComponentBindingModel model);
bool Update(ComponentBindingModel model);
bool Delete(ComponentBindingModel model);
}
}

View File

@ -0,0 +1,20 @@
using AircraftPlantContracts.BindingModels;
using AircraftPlantContracts.SearchModels;
using AircraftPlantContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.BusinessLogicsContracts
{
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

@ -0,0 +1,20 @@
using AircraftPlantContracts.BindingModels;
using AircraftPlantContracts.SearchModels;
using AircraftPlantContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AircraftPlantContracts.BusinessLogicsContracts
{
public interface IPlaneLogic
{
List<PlaneViewModel>? ReadList(PlaneSearchModel? model);
PlaneViewModel? ReadElement(PlaneSearchModel model);
bool Create(PlaneBindingModel model);
bool Update(PlaneBindingModel model);
bool Delete(PlaneBindingModel model);
}
}

View File

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