Кодревью, переименовал вьюмодели в соотвествии с общим стилем
This commit is contained in:
parent
1359f94b79
commit
165a8ff96c
@ -6,8 +6,8 @@ namespace PolyclinicContracts.BusinessLogicsContracts
|
|||||||
{
|
{
|
||||||
public interface IMedicamentLogic
|
public interface IMedicamentLogic
|
||||||
{
|
{
|
||||||
List<MedicamentView>? ReadList(MedicamentSearchModel? model);
|
List<MedicamentViewModel>? ReadList(MedicamentSearchModel? model);
|
||||||
MedicamentView? ReadElement(MedicamentSearchModel model);
|
MedicamentViewModel? ReadElement(MedicamentSearchModel model);
|
||||||
bool Create(MedicamentBindingModel model);
|
bool Create(MedicamentBindingModel model);
|
||||||
bool Update(MedicamentBindingModel model);
|
bool Update(MedicamentBindingModel model);
|
||||||
bool Delete(MedicamentBindingModel model);
|
bool Delete(MedicamentBindingModel model);
|
||||||
|
@ -6,8 +6,8 @@ namespace PolyclinicContracts.BusinessLogicsContracts
|
|||||||
{
|
{
|
||||||
public interface IProcedureLogic
|
public interface IProcedureLogic
|
||||||
{
|
{
|
||||||
List<ProcedureView>? ReadList(ProcedureSearchModel? model);
|
List<ProcedureViewModel>? ReadList(ProcedureSearchModel? model);
|
||||||
ProcedureView? ReadElement(ProcedureSearchModel model);
|
ProcedureViewModel? ReadElement(ProcedureSearchModel model);
|
||||||
bool Create(ProcedureBindingModel model);
|
bool Create(ProcedureBindingModel model);
|
||||||
bool Update(ProcedureBindingModel model);
|
bool Update(ProcedureBindingModel model);
|
||||||
bool Delete(ProcedureBindingModel model);
|
bool Delete(ProcedureBindingModel model);
|
||||||
|
@ -6,8 +6,8 @@ namespace PolyclinicContracts.BusinessLogicsContracts
|
|||||||
{
|
{
|
||||||
public interface IRecipeLogic
|
public interface IRecipeLogic
|
||||||
{
|
{
|
||||||
List<RecipeView>? ReadList(RecipeSearchModel? model);
|
List<RecipeViewModel>? ReadList(RecipeSearchModel? model);
|
||||||
RecipeView? ReadElement(RecipeSearchModel model);
|
RecipeViewModel? ReadElement(RecipeSearchModel model);
|
||||||
bool Create(RecipeBindingModel model);
|
bool Create(RecipeBindingModel model);
|
||||||
bool Update(RecipeBindingModel model);
|
bool Update(RecipeBindingModel model);
|
||||||
bool Delete(RecipeBindingModel model);
|
bool Delete(RecipeBindingModel model);
|
||||||
|
@ -6,11 +6,11 @@ namespace PolyclinicContracts.StoragesContracts
|
|||||||
{
|
{
|
||||||
public interface IMedicamentStorage
|
public interface IMedicamentStorage
|
||||||
{
|
{
|
||||||
List<MedicamentView> GetFullList();
|
List<MedicamentViewModel> GetFullList();
|
||||||
List<MedicamentView> GetFilteredList(MedicamentSearchModel model);
|
List<MedicamentViewModel> GetFilteredList(MedicamentSearchModel model);
|
||||||
MedicamentView? GetElement(MedicamentSearchModel model);
|
MedicamentViewModel? GetElement(MedicamentSearchModel model);
|
||||||
MedicamentView? Insert(MedicamentBindingModel model);
|
MedicamentViewModel? Insert(MedicamentBindingModel model);
|
||||||
MedicamentView? Update(MedicamentBindingModel model);
|
MedicamentViewModel? Update(MedicamentBindingModel model);
|
||||||
MedicamentView? Delete(MedicamentBindingModel model);
|
MedicamentViewModel? Delete(MedicamentBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,11 +6,11 @@ namespace PolyclinicContracts.StoragesContracts
|
|||||||
{
|
{
|
||||||
public interface IProcedureStorage
|
public interface IProcedureStorage
|
||||||
{
|
{
|
||||||
List<ProcedureView> GetFullList();
|
List<ProcedureViewModel> GetFullList();
|
||||||
List<ProcedureView> GetFilteredList(ProcedureSearchModel model);
|
List<ProcedureViewModel> GetFilteredList(ProcedureSearchModel model);
|
||||||
ProcedureView? GetElement(ProcedureSearchModel model);
|
ProcedureViewModel? GetElement(ProcedureSearchModel model);
|
||||||
ProcedureView? Insert(ProcedureBindingModel model);
|
ProcedureViewModel? Insert(ProcedureBindingModel model);
|
||||||
ProcedureView? Update(ProcedureBindingModel model);
|
ProcedureViewModel? Update(ProcedureBindingModel model);
|
||||||
ProcedureView? Delete(ProcedureBindingModel model);
|
ProcedureViewModel? Delete(ProcedureBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,11 +6,11 @@ namespace PolyclinicContracts.StoragesContracts
|
|||||||
{
|
{
|
||||||
public interface IRecipeStorage
|
public interface IRecipeStorage
|
||||||
{
|
{
|
||||||
List<RecipeView> GetFullList();
|
List<RecipeViewModel> GetFullList();
|
||||||
List<RecipeView> GetFilteredList(RecipeSearchModel model);
|
List<RecipeViewModel> GetFilteredList(RecipeSearchModel model);
|
||||||
RecipeView? GetElement(RecipeSearchModel model);
|
RecipeViewModel? GetElement(RecipeSearchModel model);
|
||||||
RecipeView? Insert(RecipeBindingModel model);
|
RecipeViewModel? Insert(RecipeBindingModel model);
|
||||||
RecipeView? Update(RecipeBindingModel model);
|
RecipeViewModel? Update(RecipeBindingModel model);
|
||||||
RecipeView? Delete(RecipeBindingModel model);
|
RecipeViewModel? Delete(RecipeBindingModel model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.ViewModels
|
namespace PolyclinicContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class MedicamentView : IMedicamentModel
|
public class MedicamentViewModel : IMedicamentModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public int ProcedureId { get; set; }
|
public int ProcedureId { get; set; }
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.ViewModels
|
namespace PolyclinicContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class ProcedureView : IProcedureModel
|
public class ProcedureViewModel : IProcedureModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace PolyclinicContracts.ViewModels
|
namespace PolyclinicContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class RecipeView : IRecipeModel
|
public class RecipeViewModel : IRecipeModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user