Пример #1
0
        public IHttpActionResult Post(CreateSizeViewModel newModel)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _service.Create(_mapper.Map <Size>(newModel));
            return(Ok());
        }