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