Example #1
0
        public async Task <CustomApiResponse> Post([FromBody] List <AdvertisementsDto> entityList)
        {
            var inputEntity = _mapper.Map <List <Advertisements> >(entityList);
            var result      = await _advertisementService.AddBulk(inputEntity);

            return(new CustomApiResponse(result));
        }