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