예제 #1
0
        public async Task <MenuViewModel> CreateMenuAsync(CreateMenuInputViewModel input)
        {
            var id = await _repository.InsertReturnIdAsync(SqlConstants.CreateMenu, input);

            return(await _repository.FindAsync <MenuViewModel, int>(SqlConstants.GetMenu, id));
        }
예제 #2
0
 public async Task <IActionResult> CreateAsync(CreateMenuInputViewModel input)
 {
     return(Ok(await _menuService.CreateMenuAsync(input)));
 }