Ejemplo n.º 1
0
 public dynamic AddCollection(W_Collection model)
 {
     if (model != null)
     {
         model.AddTime = DateTime.Now.ToString();
         model.StuID   = this.SafeGetStuId;
         var dict = mapper.AddCollection(model);
         if (dict)
         {
             return(Success("操作成功"));
         }
         else
         {
             return(Success("操作失败"));
         }
     }
     else
     {
         return(Success("操作失败"));
     }
 }