Example #1
0
        public async Task <IResultModel> UpdateShowInList(PropertyUpdateShowInListModel model)
        {
            var entity = await _repository.GetAsync(model.Id);

            if (entity == null)
            {
                return(ResultModel.NotExists);
            }

            entity.ShowInList = model.ShowInList;
            var result = await _repository.UpdateAsync(entity);

            return(ResultModel.Result(result));
        }
 public Task <IResultModel> UpdateShowInList(PropertyUpdateShowInListModel model)
 {
     return(_service.UpdateShowInList(model));
 }