Пример #1
0
        public List <ObjectModel> GetAll()
        {
            var q   = ObjectService.GetAll();
            var res = q
                      .Select(p => new ObjectModel
            {
                ObjectID = p.ObjectID,
                FullName = p.FullName,
                PID      = p.PID,
                PIDDate  = p.PIDDate,
                PIDIssue = p.PIDIssue,
                DoB      = p.DoB,
                PoB      = p.PoB,
                PerAdd   = p.PerAdd,
                TemAdd   = p.TemAdd,
                Gender   = p.Gender,
                Tel      = p.Tel,
                Email    = p.Email
            }).ToList();

            return(res);
        }