Exemple #1
0
        public async Task <ActionResult <Design> > Post(Design design)
        {
            if (design == null)
            {
                return(BadRequest());
            }

            await _designService.CreateDesignAsync(_mapper.Map <Design, DesignDTO>(design));

            return(Ok(design));
        }