public async Task <MenuClientDto> CreateMenuClientAsync(CreateMenuClientInput input) { var entity = ObjectMapper.Map <MenuClient>(input); entity = await _menuRepository.InsertAsync(entity); return(ObjectMapper.Map <MenuClientDto>(entity)); }
public async Task <MenuClientDto> CreateMenuClient([FromBody] CreateMenuClientInput input) { return(await _menuClientAppService.CreateMenuClientAsync(input)); }