public ActionResult GetOutletByBrandId(string GroupId, string BrandId) { string connStr = objCustRepo.GetCustomerConnString(GroupId); SPResponse result = new SPResponse(); var lstoutletlist = RR.GetOutletListByBrandId(BrandId, connStr); ViewBag.OutletListByBrand = lstoutletlist; return(Json(lstoutletlist, JsonRequestBehavior.AllowGet)); }