Esempio n. 1
0
 public ActionResult CreateBook(Book model)
 {
     if (!loggedIn())
     {
         return(RedirectToAction("Index", "Login", new { redirectAction = "Index", redirectController = "Admin" }));
     }
     if (!checkPermission())
     {
         return(RedirectToAction("AccessDenied", "Home"));
     }
     proxy.createBook(model, "test", "test", "test");
     return(RedirectToAction("FormResponse", "Admin", new { message = "Book Creation Success" }));
 }