public IActionResult AthleteList(int?id) { AthleteModel model = new AthleteModel(); string message = string.Empty; try { model.athleteList = BALUser.GetAthletesByTypeId(id.ToSafeInt(), _configuration["DomainName"].ToSafeString()); model.TestId = id.ToSafeInt(); if (TempData["message"] != null) { message = TempData["message"].ToSafeString(); ViewBag.Message = message; if (TempData["IsSuccess"].ToSafeInt() == 0) { ViewBag.IsError = 1; } else { ViewBag.IsForgotPwdSucc = 1; } } } catch (System.Exception) { throw; } return(View(model)); }