/// <summary> /// Add Contributor information /// </summary> /// <param name="value"></param> // POST api/<controller> public void Post([FromBody] Contributor value) { if (value != null) { // Insert contributorRepository.Add(value); } else { contributorRepository.SetException(HttpStatusCode.NotFound, $"Contributor info cannot be empty"); } }
public Contributor Add(Contributor contributor) { return(_contributorRepository.Add(contributor)); }