//GET: CallForPapers/Delete public ActionResult Delete() { if (Request.IsAuthenticated) { return(RedirectToAction("PermissionDenied")); } DeleteCallForPapersViewModel model = new DeleteCallForPapersViewModel(); return(View(model)); }
public ActionResult Delete(CallForPapers callforpaper) { try { DeleteCallForPapersViewModel model = new DeleteCallForPapersViewModel(ModelState.IsValid, callforpaper, CallForPaperService); return(View(model)); } catch (System.Exception) { return(RedirectToRoute("~/Shared/Error")); } }