Пример #1
0
 public async Task <ActionResult <List <ReleaseNoteViewModel> > > UpdateReleaseNote(
     CreateOrUpdateReleaseNoteRequest request, Guid releaseId, Guid releaseNoteId)
 {
     return(await _releaseNoteService
            .UpdateReleaseNoteAsync(releaseId, releaseNoteId, request)
            .HandleFailuresOr(Ok));
 }
Пример #2
0
 public async Task <ActionResult <List <ReleaseNoteViewModel> > > AddReleaseNote(CreateOrUpdateReleaseNoteRequest request,
                                                                                 Guid releaseId)
 {
     return(await _releaseNoteService
            .AddReleaseNoteAsync(releaseId, request)
            .HandleFailuresOr(result => Created(HttpContext.Request.Path, result)));
 }