예제 #1
0
        public async Task <ActionResult <ReleaseEntity> > Create([FromBody] CreateReleaseRequestViewModel createRelease)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(Created(string.Empty, await _releaseService.CreateAsync(createRelease.ToEntityModel())));
        }
예제 #2
0
 public async Task <ActionResult <ReleaseEntity> > Create([FromBody] CreateReleaseRequestViewModel createRelease)
 => Created(string.Empty, await _releaseService.CreateAsync(createRelease.ToEntityModel()));