Exemple #1
0
 public IActionResult GetDealersByGroupName(string groupName)
 {
     try
     {
         _log.Info($"GetDealersByGroupName Calling - {groupName} ");
         var lst = _userViewRepository.GetDealersByGroupName(groupName);
         return(Ok(lst));
     }
     catch (Exception ex)
     {
         _log.Error($"Error in GetDealersByGroupName - ", ex);
         return(StatusCode(500, new ErrorModel {
             HttpStatusCode = 500, Message = "Internal Server Error"
         }));
     }
 }