예제 #1
0
        public async Task <ActionResult> DeleteMenuItem(int id)
        {
            try
            {
                await _service.DeleteMenuItemAsync(id);

                return(Ok());
            }
            catch (Exception e)
            {
                return(Conflict(e.Message));
            }
        }