public JsonResult GetEmailByUserId(int userId) { var phones = _phoneService.GetPhnesByUserId(userId); var phonesData = JsonConvert.SerializeObject(phones); return(Json(phonesData, JsonRequestBehavior.AllowGet)); }