public async Task <IActionResult> PutCandidateTab(int id, CandidateTab candidateTab) { if (id != candidateTab.CandidateID) { return(BadRequest()); } _context.Entry(candidateTab).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CandidateTabExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutTraningInformation(int id, TraningInformation traningInformation) { if (id != traningInformation.ID) { return(BadRequest()); } _context.Entry(traningInformation).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TraningInformationExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutReferanceInfo(int id, ReferanceInfo referanceInfo) { if (id != referanceInfo.ID) { return(BadRequest()); } _context.Entry(referanceInfo).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ReferanceInfoExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }