Exemplo n.º 1
0
 public IList <HostDTO> GetHosts()
 {
     return((from f in _hostRepo.List()
             select new HostDTO()
     {
         Id = f.Id,
         Url = f.Url,
         Name = f.Name,
         Pushpins = f.Pushpins,
         Events = f.Events,
         Attractions = f.Attractions,
         User = new ApplicationUserDTO()
         {
             UserName = f.User.UserName
         }
     }).ToList());
 }