Пример #1
0
        public ActionResult Index()
        {
            List <TeamDetailsEL> ddlTeamDetails = new List <TeamDetailsEL>();

            ddlTeamDetails          = objAdminBL.lstTeamName().ToList();
            ViewData["TeamDetails"] = new SelectList(ddlTeamDetails, "TeamId", "TeamName");

            List <MatchDetailsEL> ddlMatchDetails = new List <MatchDetailsEL>();

            ddlMatchDetails          = objMatchBL.GetListOfInProgressMatches(CommonClass.InProgress);
            ViewData["InProgressMD"] = new SelectList(ddlMatchDetails, "MatchId", "MatchId");
            return(View());
        }
Пример #2
0
 public ActionResult Index()
 {
     try
     {
         MatchDetails lstmatchdetails = new MatchDetails();
         lstmatchdetails.lstFixtures   = objMatchBL.GetListOfFixturedMatches(CommonClass.Fixtures);
         lstmatchdetails.lstInProgress = objMatchBL.GetListOfInProgressMatches(CommonClass.InProgress);
         lstmatchdetails.lstCompleted  = objMatchBL.GetListOfCompletedMatches(CommonClass.Completed);
         return(View(lstmatchdetails));
     }
     catch (Exception ex)
     {
         ExceptionLogger.LogException(Convert.ToString(Session["UserId"]), Convert.ToString(ex.InnerException), Convert.ToString(ex.Message), Convert.ToString(ex.Source), Convert.ToString(ex.StackTrace), DateTime.Now);
         return(View("error"));
     }
 }