Esempio n. 1
0
 public ActionResult Create()
 {
     if (Session["LogedUserID"] != null)
     {
         try
         {
             var city = db.SP_SelectCity();
             return(View(city));
         }
         catch (Exception ex)
         {
             ViewBag.errorMessage = "Error occurred while loading data.";
             return(View());
         }
     }
     else
     {
         return(RedirectToAction("AdminLogin", "Account"));
     }
 }