public ActionResult WarrantHistory(int id, string code) { var list = Warranty.GetHistory(UserID, id, code); return(Json(new { html = RenderPartialViewToString("WarrantHistory", list) }, JsonRequestBehavior.AllowGet)); }