public async Task <ActionResult <ReleaseEntity> > Create([FromBody] CreateReleaseRequestViewModel createRelease) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Created(string.Empty, await _releaseService.CreateAsync(createRelease.ToEntityModel()))); }
public async Task <ActionResult <ReleaseEntity> > Create([FromBody] CreateReleaseRequestViewModel createRelease) => Created(string.Empty, await _releaseService.CreateAsync(createRelease.ToEntityModel()));