public ActionResult Add([ModelBinder(typeof(JsonBinder<StorageEntity>))] StorageEntity entity)
 {
     StorageProvider provider = new StorageProvider();
     int line = 0;
     if (entity.StorageNum.IsEmpty())
     {
         entity.CreateTime = DateTime.Now;
         entity.StorageNum = entity.StorageNum.IsEmpty() ? SequenceProvider.GetSequence(typeof(StorageEntity)) : entity.StorageNum;
         entity.IsDelete = (int)EIsDelete.NotDelete;
         entity.IsForbid = (int)EBool.No;
         line = provider.Add(entity);
     }
     else
     {
         entity.Include(a => new { a.StorageName, a.StorageType, a.Length, a.Width, a.Height, a.Action, a.Status, a.IsDefault, a.Remark });
         entity.Where(a => a.StorageNum == entity.StorageNum);
         line = provider.Update(entity);
     }
     if (line > 0)
     {
         this.ReturnJson.AddProperty("d", "success");
     }
     else
     {
         this.ReturnJson.AddProperty("d", "");
     }
     return Content(this.ReturnJson.ToString());
 }
 public ActionResult Audit(string StorageNum, string IsForbid)
 {
     StorageProvider provider = new StorageProvider();
     StorageEntity entity = new StorageEntity();
     entity.IncludeIsForbid(true);
     entity.IsForbid = ConvertHelper.ToType<int>(IsForbid);
     entity.Where(a => a.StorageNum == StorageNum);
     int line = provider.Update(entity);
     if (line > 0)
     {
         this.ReturnJson.AddProperty("d", "success");
     }
     else
     {
         this.ReturnJson.AddProperty("d", "");
     }
     return Content(this.ReturnJson.ToString());
 }