public async Task <MenuClientDto> CreateMenuClientAsync(CreateMenuClientInput input)
        {
            var entity = ObjectMapper.Map <MenuClient>(input);

            entity = await _menuRepository.InsertAsync(entity);

            return(ObjectMapper.Map <MenuClientDto>(entity));
        }
Exemple #2
0
 public async Task <MenuClientDto> CreateMenuClient([FromBody] CreateMenuClientInput input)
 {
     return(await _menuClientAppService.CreateMenuClientAsync(input));
 }