示例#1
0
 public ActionResult SetPriority(PriorityProduct hp)
 {
     if (ModelState.IsValid)
     {
         hp.CreatedBy = User.Identity.Name;
         hp.CreatedDate = DateTime.Now;
         hp.UpdatedBy = User.Identity.Name;
         hp.UpdatedDate = DateTime.Now;
         hp.IsActive = true;
         hp.IsDelete = false;
         db.Entry(hp).State = EntityState.Added;
         db.SaveChanges();
     }
     return View(hp);
 }
示例#2
0
 public ActionResult SetPriorityGet(int id)
 {
     PriorityProduct pr = new PriorityProduct()
     {
         ProductID = id
     };
     return PartialView("SetPriority",pr);
 }