public ActionResult SetPriority(PriorityProduct hp)
        {
            try
            {
                hp.IsActive = true;
                hp.IsDelete = false;
                if (ModelState.IsValid)
                {
                    hp.CreatedBy = User.Identity.Name;
                    hp.CreatedDate = DateTime.Now;
                    hp.UpdatedBy = User.Identity.Name;
                    hp.UpdatedDate = DateTime.Now;
                    db.Entry(hp).State = EntityState.Added;
                    db.SaveChanges();
                    return Json(new { success = true });
                }
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("errorExp",ex.Message);
                
            }

            return PartialView(hp);
        }
 public ActionResult SetPriorityGet(int id)
 {
     PriorityProduct pr = new PriorityProduct()
     {
         ProductID = id
     };
     return PartialView("SetPriority", pr);
 }