SearchModels и StoragesContracts

This commit is contained in:
Allllen4a 2024-04-24 14:02:00 +04:00
parent d3c163d25e
commit a2f1221c34
8 changed files with 137 additions and 0 deletions

View File

@ -0,0 +1,11 @@
namespace BeautySalonContracts.SearchModels
{
public class ClientSearchModel
{
public int? Id { get; set; }
public string? ClientLogin { get; set; }
public string? ClientFIO { get; set; }
public string? ClientEmail { get; set; }
public string? ClientPassword { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace BeautySalonContracts.SearchModels
{
public class EvaluationSearchModel
{
public int? Id { get; set; }
public int? ClientId { get; set; }
public int? PageNumber { get; set; }
public int? PageSize { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeautySalonContracts.SearchModels
{
public class OrderSearchModel
{
public int? Id { get; set; }
public DateTime? OrderDate { get; set; }
public int? ClientId { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace BeautySalonContracts.SearchModels
{
public class ProcedureSearchModel
{
public int? Id { get; set; }
public string? ProcedureName { get; set; }
public int? ClientId { get; set; }
public int? PageNumber { get; set; }
public int? PageSize { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using BeautySalonContracts.BindingModels;
using BeautySalonContracts.SearchModels;
using BeautySalonContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeautySalonContracts.StoragesContracts
{
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,23 @@
using BeautySalonContracts.BindingModels;
using BeautySalonContracts.SearchModels;
using BeautySalonContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeautySalonContracts.StoragesContracts
{
public interface IEvaluationStorage
{
List<EvaluationViewModel> GetFullList();
List<EvaluationViewModel> GetFilteredList(EvaluationSearchModel model);
EvaluationViewModel? GetElement(EvaluationSearchModel model);
EvaluationViewModel? Insert(EvaluationBindingModel model);
EvaluationViewModel? Update(EvaluationBindingModel model);
EvaluationViewModel? Delete(EvaluationBindingModel model);
int GetNumberOfPages(int userId, int pageSize);
}
}

View File

@ -0,0 +1,23 @@
using BeautySalonContracts.BindingModels;
using BeautySalonContracts.SearchModels;
using BeautySalonContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeautySalonContracts.StoragesContracts
{
public interface IOrderStorage
{
List<OrderViewModel> GetFullList();
List<OrderViewModel> GetFilteredList(OrderSearchModel model);
OrderViewModel? GetElement(OrderSearchModel model);
OrderViewModel? Insert(OrderBindingModel model);
OrderViewModel? Update(OrderBindingModel model);
OrderViewModel? Delete(OrderBindingModel model);
int GetNumberOfPages(int userId, int pageSize);
}
}

View File

@ -0,0 +1,22 @@
using BeautySalonContracts.BindingModels;
using BeautySalonContracts.SearchModels;
using BeautySalonContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeautySalonContracts.StoragesContracts
{
public interface IProcedureStorage
{
List<ProcedureViewModel> GetFullList();
List<ProcedureViewModel> GetFilteredList(ProcedureSearchModel model);
ProcedureViewModel? GetElement(ProcedureSearchModel model);
ProcedureViewModel? Insert(ProcedureBindingModel model);
ProcedureViewModel? Update(ProcedureBindingModel model);
ProcedureViewModel? Delete(ProcedureBindingModel model);
int GetNumberOfPages(int userId, int pageSize);
}
}