public ActionResult Create()
 {
     if (Session["LogedUserID"] != null)
     {
         try
         {
             var systemitem = db.SP_SelectSystemItems();
             var systems    = db.PatientSystems
                              .Where(a => a.active == true).ToList();
             ViewBag.Systems  = systems;
             ViewBag.systemid = 0;
             return(View(systemitem));
         }
         catch (Exception ex)
         {
             ViewBag.errorMessage = "Error occurred while loading data.";
             return(View());
         }
     }
     else
     {
         return(RedirectToAction("AdminLogin", "Account"));
     }
 }