public ActionResult GetProductlistbySupplierId(string supplierId) { var identity = (LoginIdentity)Thread.CurrentPrincipal.Identity; var serializer = new JavaScriptSerializer() { MaxJsonLength = int.MaxValue }; var data = serializer.Serialize(_rawSqlService.GetProductlistbySupplierId(identity.CompanyId, identity.BranchId, supplierId)); return(Json(data)); }