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);
 }
 public ActionResult SetPriorityGet(int id)
 {
     PriorityProduct pr = new PriorityProduct()
     {
         ProductID = id
     };
     return PartialView("SetPriority",pr);
 }