Another bug fixes
This commit is contained in:
parent
e6f5ae0f17
commit
c35b78a8b7
@ -18,7 +18,7 @@ namespace ServiceStationContracts.BindingModels
|
||||
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
||||
public int Point { get; set; }
|
||||
public int? Point { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -6,8 +6,8 @@ namespace ServiceStationContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IClientLogic
|
||||
{
|
||||
List<ClientViewModel> ReadList(ClientSearchModel? model = null);
|
||||
ClientViewModel ReadElement(ClientSearchModel model);
|
||||
List<ClientViewModel>? ReadList(ClientSearchModel? model = null);
|
||||
ClientViewModel? ReadElement(ClientSearchModel model);
|
||||
bool Create(ClientBindingModel model);
|
||||
bool Update(ClientBindingModel model);
|
||||
bool Delete(ClientBindingModel model);
|
||||
|
@ -6,8 +6,8 @@ namespace ServiceStationContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IExecutorLogic
|
||||
{
|
||||
List<ExecutorViewModel> ReadList(ExecutorSearchModel? model = null);
|
||||
ExecutorViewModel ReadElement(ExecutorSearchModel model);
|
||||
List<ExecutorViewModel>? ReadList(ExecutorSearchModel? model = null);
|
||||
ExecutorViewModel? ReadElement(ExecutorSearchModel model);
|
||||
bool Create(ExecutorBindingModel model);
|
||||
bool Update(ExecutorBindingModel model);
|
||||
bool Delete(ExecutorBindingModel model);
|
||||
|
@ -6,9 +6,9 @@ namespace ServiceStationContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IReportLogic
|
||||
{
|
||||
WorkModelViewModel ReadList(ReportSearchModel model);
|
||||
bool Create(WorkModelBindingModel model);
|
||||
bool Update(WorkModelBindingModel model);
|
||||
bool Delete(WorkModelBindingModel model);
|
||||
ReportViewModel? ReadList(ReportSearchModel model);
|
||||
bool Create(ReportBindingModel model);
|
||||
bool Update(ReportBindingModel model);
|
||||
bool Delete(ReportBindingModel model);
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ namespace ServiceStationContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IWorkLogic
|
||||
{
|
||||
List<WorkViewModel> ReadList(WorkSearchModel? model = null);
|
||||
List<WorkViewModel>? ReadList(WorkSearchModel? model = null);
|
||||
bool Create(WorkBindingModel model);
|
||||
bool Update(WorkBindingModel model);
|
||||
bool Delete(WorkBindingModel model);
|
||||
|
@ -18,7 +18,7 @@ namespace ServiceStationContracts.ViewModels
|
||||
[DisplayName("Логин")]
|
||||
public string Login { get; set; } = string.Empty;
|
||||
[DisplayName("Бонусы")]
|
||||
public int Point { get; set; }
|
||||
public int? Point { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
|
@ -10,6 +10,6 @@ namespace ServiceStationDataModels
|
||||
string Password { get; }
|
||||
string PhoneNumber { get; }
|
||||
string Login { get; }
|
||||
int Point { get; }
|
||||
int? Point { get; }
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ namespace ServiceStationsDataBaseImplement.Models
|
||||
[Required]
|
||||
public string Login { get; set; } = string.Empty;
|
||||
[Required]
|
||||
public int Point { get; set; }
|
||||
public int? Point { get; set; }
|
||||
public int Id { get; set; }
|
||||
public static Client? Create(ClientBindingModel? model)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user