예제 #1
0
        public async Task <ActionResult <BlogInfoDto> > CreateBlogInfoAsync([FromBody] BlogForAddDto request)
        {
            var blogForAdd = await _jobsRepository.CreateBlogInfoAsync(request);

            var blogDto = _mapper.Map <BlogInfoDto>(blogForAdd);

            return(CreatedAtRoute("GetBlogInfoAsync",
                                  new { id = blogForAdd.Id },
                                  blogDto));
        }