Esempio n. 1
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);
     };
 }
Esempio n. 2
0
 public ProfileService(IProfileDatabase db)
 {
     this.db = db;
 }
Esempio n. 3
0
 public ProfileListHandler(IProfileDatabase db)
 {
     this.db = db;
 }