public List<TechRoute> GetTechRoutes() { var s = new DrawingsService(); s.Credentials = new NetworkCredential("aaa", "aaa"); var opers = s.GetTechRoutes(); return new List<TechRoute>( opers.Select( x => new TechRoute { Id = Convert.ToInt32(x.Code), Name = x.Name, Note = x.Note, TechOperations = x.ListOperations.Select(y => new TechOperation { Id = Convert.ToInt32(y.Code), ShortName = y.Name, FullName = y.FullName }).ToList() })); }