Ejemplo n.º 1
0
        public async Task <CustomApiResponse> Post([FromBody] List <PostsDto> entityList)
        {
            var inputEntity = _mapper.Map <List <Posts> >(entityList);
            var result      = await _postService.AddBulk(inputEntity);

            return(new CustomApiResponse(result));
        }