public ActionResult Create(VendorModel vendormodel)
        {
            if (ModelState.IsValid)
            {
                vendormodel.CreateTime = DevTools.GetNowDateTime();
                vendormodel.ModifyTime = vendormodel.CreateTime;
                db.VendorModels.Add(vendormodel);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(vendormodel);
        }
 public ActionResult Edit(VendorModel vendormodel)
 {
     if (ModelState.IsValid)
     {
         vendormodel.ModifyTime = DevTools.GetNowDateTime();
         db.Entry(vendormodel).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(vendormodel);
 }