コード例 #1
0
 public ActionResult Delete(WebsiteModel model)
 {
     try {
         websiteService.RemoveContactWebsite(model.ContactId, model.Id);
         return(RedirectToAction("Index", new { id = model.ContactId }));
     } catch (Exception ex) {
         ViewBag.ErrorMessage = ex.Message;
         return(View(model));
     }
 }