public IActionResult PostCandidateCertification([FromBody] CandidateCertification candidateCertification) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } candidateCertification.Id = _candidateCertificationRepository.AddCandidateCertification(candidateCertification); return(CreatedAtAction("PostCandidateCertification", new { id = candidateCertification.Id }, candidateCertification)); }
public IActionResult PutCandidateCertification([FromBody] CandidateCertification candidateCertification) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _candidateCertificationRepository.EditCandidateCertification(candidateCertification); return(Ok(candidateCertification)); }