public async Task <MenuClientDto> UpdateMenuClientAsync(UpdateMenuClientInput input)
        {
            var entity = await _menuRepository.GetAsync(input.Id);

            ObjectMapper.Map(input, entity);
            entity = await _menuRepository.UpdateAsync(entity);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(ObjectMapper.Map <MenuClientDto>(entity));
        }
Exemplo n.º 2
0
 public async Task <MenuClientDto> UpdateMenuClient([FromBody] UpdateMenuClientInput input)
 {
     return(await _menuClientAppService.UpdateMenuClientAsync(input));
 }