Upload files to 'STOContracts/StorageContracts'

This commit is contained in:
Ivan_Starostin 2024-05-01 14:29:17 +04:00
parent b816caef63
commit 106d50af77
5 changed files with 101 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using STOContracts.BindingModels;
using STOContracts.SearchModels;
using STOContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.StorageContracts
{
public interface ICarPartStorage
{
List<CarPartViewModel> GetFullList();
List<CarPartViewModel> GetFilteredList(CarPartSearchModel model);
CarPartViewModel? GetElement(CarPartSearchModel model);
CarPartViewModel? Insert(CarPartBindingModel model);
CarPartViewModel? Update(CarPartBindingModel model);
CarPartViewModel? Delete(CarPartBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using STOContracts.BindingModels;
using STOContracts.SearchModels;
using STOContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.StorageContracts
{
public interface ICarStorage
{
List<CarViewModel> GetFullList();
List<CarViewModel> GetFilteredList(CarSearchModel model);
CarViewModel? GetElement(CarSearchModel model);
CarViewModel? Insert(CarBindingModel model);
CarViewModel? Update(CarBindingModel model);
CarViewModel? Delete(CarBindingModel model);
}
}

View File

@ -0,0 +1,22 @@
using STOContracts.BindingModels;
using STOContracts.SearchModels;
using STOContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.StorageContracts
{
public interface IClientStorage
{
List<ClientViewModel> GetFullList();
List<ClientViewModel> GetFilteredList(ClientSearchModel model);
ClientViewModel? GetElement(ClientSearchModel model);
ClientViewModel? Insert(ClientBindingModel model);
ClientViewModel? Update(ClientBindingModel model);
ClientViewModel? Delete(ClientBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using STOContracts.BindingModels;
using STOContracts.SearchModels;
using STOContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.StorageContracts
{
public interface IServiceStorage
{
List<ServiceViewModel> GetFullList();
List<ServiceViewModel> GetFilteredList(ServiceSearchModel model);
ServiceViewModel? GetElement(ServiceSearchModel model);
ServiceViewModel? Insert(ServiceBindingModel model);
ServiceViewModel? Update(ServiceBindingModel model);
ServiceViewModel? Delete(ServiceBindingModel model);
}
}

View File

@ -0,0 +1,16 @@
using STOContracts.BindingModels;
using STOContracts.SearchModels;
using STOContracts.ViewModels;
namespace STOContracts.StoragesContracts
{
public interface ITechnicalWorkStorage
{
List<TechnicalWorkViewModel> GetFullList();
List<TechnicalWorkViewModel> GetFilteredList(TechnicalWorkSearchModel model);
TechnicalWorkViewModel? GetElement(TechnicalWorkSearchModel model);
TechnicalWorkViewModel? Insert(TechnicalWorkBindingModel model);
TechnicalWorkViewModel? Update(TechnicalWorkBindingModel model);
TechnicalWorkViewModel? Delete(TechnicalWorkBindingModel model);
}
}