Esempio n. 1
0
 // 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 }));
     }
 }
Esempio n. 2
0
 // 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 }));
     }
 }
Esempio n. 3
0
        // GET: api/Format/5
        public Format Get(int id)
        {
            Format format = FormatManager.LoadById(id);

            return(format);
        }