Esempio n. 1
0
 public ActionResult Add(string title, string introduce, string context)
 {
     try
     {
         infoDal.Insert(title, introduce, context);
         return(Json(true));
     }catch (Exception e)
     {
         return(Json(false));
     }
 }
Esempio n. 2
0
 public ActionResult Add(string title, string introduce, string context)
 {
     infoDal.Insert(title, introduce, context);
     return(Redirect("/Home/Index"));
 }