Beispiel #1
0
        public JsonResult GetPhones(int id)
        {
            var model = new GetUpdateModel();

            model.Unvan  = _personService.Get(i => i.PersonID == id).Title;
            model.Phones = _phoneService.GetList(i => i.PersonID == id).Select(i => i.Number).ToList();

            return(Json(model));
        }