public ActionResult DeleteProducts(string id) { Response res = new Response(); List <object> resultList = new List <object>(); res = masterDal.DeleteProductDetails(Int32.Parse(id)); resultList.Add(res); resultList.Add(GetAllProducts()); return(Json(resultList, JsonRequestBehavior.AllowGet)); }