public async Task <ActionResult> GetContacts(string AccountName, string ConatctName) { try { List <ContactModel> list = new List <ContactModel>(); ContactRepo contactRepo = new ContactRepo(); list = await contactRepo.GetAccounts(AccountName, ConatctName); //return new JsonResult() { Data = list, MaxJsonLength = 86753090, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; return(Json(list, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { throw ex; } }