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