public ActionResult <OrderOutputModel> CreateOrder(OrderInputModel inputModel) { var validationResult = _validator.CheckOrderInputModel(inputModel); if (!string.IsNullOrWhiteSpace(validationResult)) { return(BadRequest(validationResult)); } var dataWrapper = _repo.CreateOrder(_mapper.Map <OrderDto>(inputModel)); return(MakeResponse(dataWrapper, _mapper.Map <OrderOutputModel>)); }