示例#1
0
文件: Tag.cs 项目: ThreeHeadz/Bam.Net
 public ActionResult Update(Bam.Net.Analytics.Tag dao)
 {
     try
     {
         dao.Save();
         return(Json(new { Success = true, Message = "", Dao = dao.ToJsonSafe() }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }
示例#2
0
文件: Tag.cs 项目: ThreeHeadz/Bam.Net
 public ActionResult Delete(long id)
 {
     try
     {
         string msg = "";
         Bam.Net.Analytics.Tag dao = Bam.Net.Analytics.Tag.OneWhere(c => c.KeyColumn == id);
         if (dao != null)
         {
             dao.Delete();
         }
         else
         {
             msg = string.Format("The specified id ({0}) was not found in the table (Tag)", id);
         }
         return(Json(new { Success = true, Message = msg, Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }
示例#3
0
文件: Tag.cs 项目: ThreeHeadz/Bam.Net
 public ActionResult Create(Bam.Net.Analytics.Tag dao)
 {
     return(Update(dao));
 }