public JsonResult regist(EquipmentLease el)
 {
     el.leaseDate = DateTime.Now;//传时间
     db.EquipmentLeases.Add(el);
     db.SaveChanges();
     return(Json(ResultMap.OK(), JsonRequestBehavior.AllowGet));
 }
        public JsonResult edit(EquipmentLease el)
        {
            EquipmentLease e = db.EquipmentLeases.Find(el.id);

            e.returnDate = el.returnDate;
            db.SaveChanges();
            return(Json(ResultMap.OK(), JsonRequestBehavior.AllowGet));
        }