Пример #1
0
 public ProfileListResponse Get(ProfileList items)
 {
     var profiles = db.ListProfiles();
     var result = new ProfileListResponse() {
         Items = profiles.Select(p => p.ToProfileResponse()).ToList()
     };
     return (result);
 }
Пример #2
0
 public ProfileListModule(IProfileDatabase db)
 {
     this.db = db;
     Get["/profiles"] = _ => {
         var profiles = db.ListProfiles();
         var result = new ProfileListResponse() { Items = profiles.Select(p => ProfileExtensions.ToProfileResponse(p)).ToList() };
         return (result);
     };
 }
Пример #3
0
 public ProfileListResponse Get()
 {
     var profiles = db.ListProfiles();
     var result = new ProfileListResponse() { Items = profiles.Select(p => ProfileExtensions.ToProfileResponse(p)).ToList() };
     return (result);
 }