public async Task <IActionResult> Get()
 {
     try
     {
         return(Json(await _groupRepository.Get()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
        public async Task <IActionResult> Get(ErrorRequest errorRequest)
        {
            try
            {
                var group = await _groupRepository.Get(errorRequest.ApplicationGroup);

                if (group != null)
                {
                    var application = await _applicationRepository.Get(group.Id, errorRequest.ApplicationName);

                    if (application != null)
                    {
                        return(Json(await _errorTemplateRepository.Get(application.Id, errorRequest.ApplicationErrorCode)));
                    }
                }

                return(Json(null));
            }
            catch (Exception e)
            {
                _logger.LogError($"[{System.Reflection.MethodBase.GetCurrentMethod().Name}] {e.Message ?? ""}", e);
                return(BadRequest(e.Message ?? ""));
            }
        }