Beispiel #1
0
        public string Print()
        {
            HomeData hd   = new HomeData();
            Home     home = hd.GetHomeData();
            string   s    = new PageOrientations().RenderRazorViewToString(this, "Print", home);

            return(s);
        }
Beispiel #2
0
 public ActionResult IndexEdit()
 {
     if (!string.IsNullOrEmpty(Session["username"] as string))
     {
         try
         {
             HomeData hd   = new HomeData();
             Home     home = hd.GetHomeData();
             return(View("IndexEdit", home));
         }
         catch (Exception ex)
         {
             return(View("Error", ex));
         }
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }
Beispiel #3
0
        public ActionResult Index()
        {
            MomaDataSet ds = db.GetHomeData();

            return(View(ds));
        }