public ActionResult ConditionCompetition(string id)
 {
     int admin = base.Authentication();
     if (admin == 0)
     {
         return Redirect("~/member/logout");
     }
     else if (admin == 1)
     {
         base.LoadMenu();
         try
         {
             int idd = Convert.ToInt16(id);
             ViewBag.competitionID = idd;
             Competitions competitionsModels = new Competitions();
             competitionsModels.ID = idd;
             competitionsModels = competitionsModels.ListNavigation("Condition");
             ViewBag.Title += " Conditions of " + competitionsModels.Name + " Competition";
             return View(competitionsModels.Condition.ToList());
         }
         catch
         {
             Session["admin"] = null;
             return Redirect("~/");
         }
     }
     else
     {
         Session["errorContorllerAction"] = true;
         return Redirect("~/administrator");
     }
 }
 public ActionResult DesignCompetition(string id)
 {
     int admin = base.Authentication();
     if (admin == 0)
     {
         return Redirect("~/member/logout");
     }
     else if (admin == 1)
     {
         base.LoadMenu();
         try
         {
             int idd = Convert.ToInt16(id);
             Competitions competitionsModels = new Competitions();
             competitionsModels.ID = idd;
             competitionsModels = competitionsModels.ListNavigation("Design");
             ViewBag.Title += " Designs of " + competitionsModels.Name + " Competition";
             List<Designs> listDesign = competitionsModels.Design.ToList();
             List<Designs> listDesignNew = new List<Designs>();
             listDesign.ForEach(delegate(Designs design)
             {
                 design = design.GetDesignByID();
                 listDesignNew.Add(design);
             });
             return View(listDesignNew);
         }
         catch
         {
             Session["admin"] = null;
             return Redirect("~/");
         }
     }
     else
     {
         Session["errorContorllerAction"] = true;
         return Redirect("~/administrator");
     }
 }