public IActionResult GetByName(string name)
        {
            if (String.IsNullOrEmpty(name))
            {
                ParameterNullException e = new ParameterNullException("The parameter cannot be null");
                return(BadRequest(e.Message));
            }

            try
            {
                return(Ok(_modelService.GetByName(name)));
            }
            catch (VehicleModelNotFoundException e)
            {
                return(BadRequest(e.Message));
            }
        }