예제 #1
0
        //GET: CallForPapers/Delete
        public ActionResult Delete()
        {
            if (Request.IsAuthenticated)
            {
                return(RedirectToAction("PermissionDenied"));
            }
            DeleteCallForPapersViewModel model = new DeleteCallForPapersViewModel();

            return(View(model));
        }
예제 #2
0
 public ActionResult Delete(CallForPapers callforpaper)
 {
     try
     {
         DeleteCallForPapersViewModel model = new DeleteCallForPapersViewModel(ModelState.IsValid, callforpaper, CallForPaperService);
         return(View(model));
     }
     catch (System.Exception)
     {
         return(RedirectToRoute("~/Shared/Error"));
     }
 }