Esempio n. 1
0
 public async Task <ProfileApiModel> UpdateAsync(string id, [FromBody] ProfileApiModel input)
 {
     return(new ProfileApiModel(await this.storage.UpdateProfileAsync(id, input.ToServiceModel(), input.ETag)));
 }
Esempio n. 2
0
 public async Task <ProfileApiModel> CreateAsync([FromBody] ProfileApiModel input)
 {
     return(new ProfileApiModel(await this.storage.CreateProfileAsync(input.ToServiceModel())));
 }