예제 #1
0
 public ActionResult Create(CSite o_site)
 {
     try
     {
         // TODO: Add insert logic here
         o_site.Insert();
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         ViewBag.Error = ex.Message;
         return(View());
     }
 }