public ActionResult GetSelectedProductInfo(string id) { _productInfoBAL = new ProductInfoBAL(); _cAS_ProductInfoVM = new CAS_ProductInfoVM(); _cAS_ProductInfoVM = _productInfoBAL.GetProductDataById(id); return PartialView("_SelectedProductInfo", _cAS_ProductInfoVM); }
public ActionResult SendFeedBackMail(string id) { _productInfoBAL = new ProductInfoBAL(); _cAS_ProductInfoVM = new CAS_ProductInfoVM(); _cAS_ProductInfoVM = _productInfoBAL.GetProductDataById(id); CommonClass common = new CommonClass(); common.SendMail(_cAS_ProductInfoVM.Customer_Name, _cAS_ProductInfoVM.Project_Name); _productInfoBAL = new ProductInfoBAL(); _productInfoBAL.UpdateProductInfoAfterMailSent(id); SearchVM obj = new SearchVM(); return RedirectToAction("Index", obj); }