public List<Drawing> GetDrawings() { var s = new DrawingsService(); s.Credentials = new NetworkCredential("aaa", "aaa"); var aaa = s.GetDrawings(); return new List<Drawing>( aaa.Select( x => new Drawing { Name = x.Name, NumberOnSpec = string.IsNullOrWhiteSpace(x.NumberOnSpec) ? (uint?) null : Convert.ToUInt32(x.NumberOnSpec), Count = x.Count, CountAll = x.CountAll, Designation = x.Designation, GostOnMaterial = x.GostMat, GostOnSort = x.GostSort, Id = Convert.ToInt32(x.Code), Length = x.Length, Width = x.Width, MarkSteal = x.MarkSteal,ParentId = x.ParentCode == string.Empty ? (int?) null : Convert.ToInt32(x.ParentCode), TechRouteId = x.TechRouteCode == string.Empty ? (int?) null : Convert.ToInt32(x.TechRouteCode), Profile = x.Profile, StandartSize = x.TypeSize, Weight = x.Weight, WeightAll = x.WeightAll, })); }