public string Print() { HomeData hd = new HomeData(); 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 { HomeData hd = new HomeData(); Home home = hd.GetHomeData(); return(View("IndexEdit", home)); } catch (Exception ex) { return(View("Error", ex)); } } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Index() { MomaDataSet ds = db.GetHomeData(); return(View(ds)); }