public ActionResult EditSIProduct(SIProductDetails sIProductDetails, int id) { var concernId = Convert.ToInt32(Session["ConcernId"]); var userId = Convert.ToInt32(Session["UserId"]); if (concernId > 0 && userId > 0) { PIRevised pIRevised = new PIRevised(); pIRevised.PICode = id.ToString(); pIRevised.UserId = userId; pIRevised.ConcernId = concernId; pIRevised.RevisedDate = DateTime.Now; pIRevised.RevisedDocs = "Product"; _permess.AddRevisedData(pIRevised); _sales.UpdateSIProductDetails(sIProductDetails, userId, concernId, id); return(RedirectToAction("EditOrders", "PermessData", new { Areas = "Permess" })); } return(RedirectToAction("LogIn", "GlobalData", new { Area = "Global" })); }
public void AddRevisedData(PIRevised pIRevised) { _context.PIReviseds.Add(pIRevised); _context.SaveChanges(); }