예제 #1
0
        public async Task <CategoryModel> PutAsync(Guid id, [FromBody] CategoryModel model)
        {
            var item = await _categoryQueryProcessor.Update(id, model);

            var resultModel = _mapper.Map <CategoryModel>(item);

            return(resultModel);
        }
예제 #2
0
 public async Task<DtoCategoryGet> PutCategory(int id, [FromBody] DtoCategoryPut dtoCategory)
 {
     var item = await queryProcessor.Update(id, dtoCategory);
     var model = autoMapper.Map<DtoCategoryGet>(item);
     return model;
 }