Esempio n. 1
0
        public IActionResult AddSubMenu([FromBody] SubMenu request)
        {
            var response = new OperationResponse <bool>();

            try
            {
                response.Data = _lookupService.AddSubMenu(request);
            }
            catch (Exception exception)
            {
                response.State = ResponseState.Error;
                response.Messages.Add(exception.Message);
                _logger.LogError(exception, "Error in AddSubMenu ==>" + exception.StackTrace, request);
            }
            return(new JsonResult(response));
        }