예제 #1
0
 public ActionResult CheckMain(int id, int idPro)
 {
     if (Repositories.CheckImgMain(id) == true)
     {
         TempData["success"] = "Uncheck/Check the main image successfully!";
     }
     else
     {
         TempData["error"] = "Uncheck/Check the main image failed!";
     }
     return(RedirectToAction("ProgramDetail", new { id = idPro }));
 }