Exemplo n.º 1
0
        async Task <FoodTypeDTO> IService <FoodTypeDTO, int> .Update(FoodTypeDTO entity)
        {
            FoodType foodType = await _foodTypeRepository.Update(_mapper.Map <FoodTypeDTO, FoodType>(entity));

            return(_mapper.Map <FoodType, FoodTypeDTO>(foodType));
        }
 public void Update(FoodType entity)
 {
     _repository.Update(entity.ToGlobal());
 }
Exemplo n.º 3
0
        public IActionResult Update([FromBody] FoodType entity)
        {
            _repository.Update(entity);

            return(Ok());
        }