/// <summary> /// Get contributor information by ID /// </summary> /// <param name="id">Contributor ID</param> /// <returns>Contributor details</returns> // GET api/<controller>/5 public Contributor Get(int id) { var contributor = contributorRepository.Get(id); if (contributor == null) { contributorRepository.SetException(HttpStatusCode.NotFound, $"Contributor ID [{id}] does not exist"); } return(contributor); }