// GET: Format/Edit/5 public ActionResult Edit(int id) { if (Authenticate.IsAuthenticated()) { Format format = FormatManager.LoadById(id); return(View(format)); } else { return(RedirectToAction("Login", "User", new { returnurl = HttpContext.Request.Url })); } }
// GET: Format/Details/5 public ActionResult Details(int id) { if (Authenticate.IsAuthenticated()) { ViewBag.Title = "Details"; Format format = new Format(); format = FormatManager.LoadById(id); return(View(format)); } else { return(RedirectToAction("Login", "User", new { returnurl = HttpContext.Request.Url })); } }
// GET: api/Format/5 public Format Get(int id) { Format format = FormatManager.LoadById(id); return(format); }