Another bug fixes

This commit is contained in:
RavilGismatullin 2024-04-30 20:47:38 +03:00
parent e6f5ae0f17
commit c35b78a8b7
8 changed files with 13 additions and 13 deletions

View File

@ -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; }
}

View File

@ -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);

View File

@ -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);

View File

@ -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);
}
}

View File

@ -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);

View File

@ -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; }
}

View File

@ -10,6 +10,6 @@ namespace ServiceStationDataModels
string Password { get; }
string PhoneNumber { get; }
string Login { get; }
int Point { get; }
int? Point { get; }
}
}

View File

@ -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)
{