예제 #1
0
        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));
        }
예제 #2
0
 public Task <IResultModel> UpdateNullable(ModelPropertyUpdateNullableModel model)
 {
     return(_service.UpdateNullable(model));
 }