Exemplo n.º 1
0
        public async Task <ActionResult> Put(int id, [FromBody] ItemUpdateDto itemUpdate)
        {
            Item item = _mapper.Map <Item>(itemUpdate);

            item.Id = id;

            if (!_itemGroupRepository.Update(item))
            {
                return(NotFound());
            }

            await _itemGroupRepository.Save();

            return(NoContent());
        }
 public bool Update(ItemGroupModel model)
 {
     return(_res.Update(model));
 }