public async Task <PublisherDto> EditPublisher(int id, EditPublisherCommand command) { var publisher = await this.Find(id); publisher.Name = command.Name; publisher = await this.Update(publisher); return(publisher.ToDto()); }
public async Task <IHttpActionResult> Update(int id, [FromBody] EditPublisherCommand command) { return(await this.Try(async() => await this._publisherRepository.EditPublisher(id, command))); }