public ActionResult delfav(int productid, int compid) { var svFav = new FavProductService(); var fav = new b2bFavProduct(); var lstProductID = new List <int>(); if (productid > 0) { lstProductID.Add(productid); svFav.Delete(lstProductID, compid); } return(Json(new { status = svFav.IsResult }, JsonRequestBehavior.AllowGet)); }
public ActionResult DeleteFavProduct(List <int> ProductID) { var svFavProduct = new FavProductService(); try { svFavProduct.Delete(ProductID, LogonCompID); } catch (Exception ex) { svFavProduct.MsgError.Add(ex); CreateLogFiles(ex); } return(Json(new { IsResult = svFavProduct.IsResult, MsgError = GenerateMsgError(svFavProduct.MsgError) })); }