示例#1
0
 public ActionResult Create(Contact contact)
 {
     try
     {
         if (ModelState.IsValid)
         {
             proxy.Insert(contact);
             return(RedirectToAction("Index"));
         }
         return(View(contact));
     }
     catch
     {
         return(View());
     }
 }