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