Кодревью, переименовал вьюмодели в соотвествии с общим стилем

This commit is contained in:
Никита Потапов 2024-04-28 11:31:34 +04:00
parent 1359f94b79
commit 165a8ff96c
9 changed files with 27 additions and 27 deletions

View File

@ -6,8 +6,8 @@ namespace PolyclinicContracts.BusinessLogicsContracts
{
public interface IMedicamentLogic
{
List<MedicamentView>? ReadList(MedicamentSearchModel? model);
MedicamentView? ReadElement(MedicamentSearchModel model);
List<MedicamentViewModel>? ReadList(MedicamentSearchModel? model);
MedicamentViewModel? ReadElement(MedicamentSearchModel model);
bool Create(MedicamentBindingModel model);
bool Update(MedicamentBindingModel model);
bool Delete(MedicamentBindingModel model);

View File

@ -6,8 +6,8 @@ namespace PolyclinicContracts.BusinessLogicsContracts
{
public interface IProcedureLogic
{
List<ProcedureView>? ReadList(ProcedureSearchModel? model);
ProcedureView? ReadElement(ProcedureSearchModel model);
List<ProcedureViewModel>? ReadList(ProcedureSearchModel? model);
ProcedureViewModel? ReadElement(ProcedureSearchModel model);
bool Create(ProcedureBindingModel model);
bool Update(ProcedureBindingModel model);
bool Delete(ProcedureBindingModel model);

View File

@ -6,8 +6,8 @@ namespace PolyclinicContracts.BusinessLogicsContracts
{
public interface IRecipeLogic
{
List<RecipeView>? ReadList(RecipeSearchModel? model);
RecipeView? ReadElement(RecipeSearchModel model);
List<RecipeViewModel>? ReadList(RecipeSearchModel? model);
RecipeViewModel? ReadElement(RecipeSearchModel model);
bool Create(RecipeBindingModel model);
bool Update(RecipeBindingModel model);
bool Delete(RecipeBindingModel model);

View File

@ -6,11 +6,11 @@ namespace PolyclinicContracts.StoragesContracts
{
public interface IMedicamentStorage
{
List<MedicamentView> GetFullList();
List<MedicamentView> GetFilteredList(MedicamentSearchModel model);
MedicamentView? GetElement(MedicamentSearchModel model);
MedicamentView? Insert(MedicamentBindingModel model);
MedicamentView? Update(MedicamentBindingModel model);
MedicamentView? Delete(MedicamentBindingModel model);
List<MedicamentViewModel> GetFullList();
List<MedicamentViewModel> GetFilteredList(MedicamentSearchModel model);
MedicamentViewModel? GetElement(MedicamentSearchModel model);
MedicamentViewModel? Insert(MedicamentBindingModel model);
MedicamentViewModel? Update(MedicamentBindingModel model);
MedicamentViewModel? Delete(MedicamentBindingModel model);
}
}

View File

@ -6,11 +6,11 @@ namespace PolyclinicContracts.StoragesContracts
{
public interface IProcedureStorage
{
List<ProcedureView> GetFullList();
List<ProcedureView> GetFilteredList(ProcedureSearchModel model);
ProcedureView? GetElement(ProcedureSearchModel model);
ProcedureView? Insert(ProcedureBindingModel model);
ProcedureView? Update(ProcedureBindingModel model);
ProcedureView? Delete(ProcedureBindingModel model);
List<ProcedureViewModel> GetFullList();
List<ProcedureViewModel> GetFilteredList(ProcedureSearchModel model);
ProcedureViewModel? GetElement(ProcedureSearchModel model);
ProcedureViewModel? Insert(ProcedureBindingModel model);
ProcedureViewModel? Update(ProcedureBindingModel model);
ProcedureViewModel? Delete(ProcedureBindingModel model);
}
}

View File

@ -6,11 +6,11 @@ namespace PolyclinicContracts.StoragesContracts
{
public interface IRecipeStorage
{
List<RecipeView> GetFullList();
List<RecipeView> GetFilteredList(RecipeSearchModel model);
RecipeView? GetElement(RecipeSearchModel model);
RecipeView? Insert(RecipeBindingModel model);
RecipeView? Update(RecipeBindingModel model);
RecipeView? Delete(RecipeBindingModel model);
List<RecipeViewModel> GetFullList();
List<RecipeViewModel> GetFilteredList(RecipeSearchModel model);
RecipeViewModel? GetElement(RecipeSearchModel model);
RecipeViewModel? Insert(RecipeBindingModel model);
RecipeViewModel? Update(RecipeBindingModel model);
RecipeViewModel? Delete(RecipeBindingModel model);
}
}

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class MedicamentView : IMedicamentModel
public class MedicamentViewModel : IMedicamentModel
{
public int Id { get; set; }
public int ProcedureId { get; set; }

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class ProcedureView : IProcedureModel
public class ProcedureViewModel : IProcedureModel
{
public int Id { get; set; }

View File

@ -3,7 +3,7 @@ using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class RecipeView : IRecipeModel
public class RecipeViewModel : IRecipeModel
{
public int Id { get; set; }