public Response GetResponseById(string id)
        {
            var response = _repo.GetResponseById(id);

            if (response == null)
            {
                throw new Exception("Bad response ID");
            }
            return(response);
        }
Beispiel #2
0
        public Response GetResponseById(string id)
        {
            var response = _repo.GetResponseById(id);

            if (response == null)
            {
                throw new Exception("Not a valid ID. Try again.");
            }
            return(response);
        }