Esempio n. 1
0
        public ActionResult GetPeoples()
        {
            var dbResult = _personHandler.ReadAll();
            var people   = (from person in dbResult
                            select new
            {
                person.ID,
                person.BaseID,
                person.FullName,
                person.Base.PrimaryAddressText,
                person.Base.PhoneNumberFormatted,
                person.Base.EmailAddressText
            });
            var jsonNetResult = new JsonNetResult {
                Data = people
            };

            return(jsonNetResult);
        }