public async Task <IResultModel> UpdateNullable(ModelPropertyUpdateNullableModel model) { var entity = await _repository.GetAsync(model.Id); if (entity == null) { return(ResultModel.NotExists); } entity.Nullable = model.Nullable; var result = await _repository.UpdateAsync(entity); return(ResultModel.Result(result)); }
public Task <IResultModel> UpdateNullable(ModelPropertyUpdateNullableModel model) { return(_service.UpdateNullable(model)); }