public async Task <MenuViewModel> CreateMenuAsync(CreateMenuInputViewModel input) { var id = await _repository.InsertReturnIdAsync(SqlConstants.CreateMenu, input); return(await _repository.FindAsync <MenuViewModel, int>(SqlConstants.GetMenu, id)); }
public async Task <IActionResult> CreateAsync(CreateMenuInputViewModel input) { return(Ok(await _menuService.CreateMenuAsync(input))); }