public async Task <ActionResult> FindMany(string search) { if (string.IsNullOrEmpty(search)) { return(Json("", JsonRequestBehavior.AllowGet)); } var friends = await friendRepository.FindMany(search); return(Json(friends, JsonRequestBehavior.AllowGet)); }