public IActionResult ConfigGet() { BaseReturnAPI result = new BaseReturnAPI() { Data = null, StatusCode = JsonApiStatusCodes.Default, Message = JsonApiStatusCodes.MessageDefault }; try { result = new BaseReturnAPI() { Data = _configService.GetAllConfigs(), StatusCode = JsonApiStatusCodes.Success, Message = JsonApiStatusCodes.MessageSucceed }; } catch (Exception ex) { var k = ex.ToString(); result.StatusCode = JsonApiStatusCodes.Failed; result.Message = k; } return(Ok(result)); }