public HttpResponseMessage Post([FromBody] Donor val) { var donors = DonorRepository.InsertDonor(val); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, donors); return(response); }
public HttpResponseMessage Post([FromBody] Donor val) { var donors = DonorRepository.InsertDonor(val); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, donors); return(response); }