public string Print()
        {
            HomeDataMonthly hd   = new HomeDataMonthly();
            Home            home = hd.GetHomeData();
            string          s    = new PageOrientations().RenderRazorViewToString(this, "Print", home);

            return(s);
        }
 public ActionResult IndexEdit()
 {
     if (!string.IsNullOrEmpty(Session["username"] as string))
     {
         try
         {
             HomeDataMonthly hd   = new HomeDataMonthly();
             Home            home = hd.GetHomeData();
             return(View("IndexEdit", home));
         }
         catch (Exception ex)
         {
             return(View("Error", ex));
         }
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }