public async Task <IActionResult> Putimage(int id, image image) { if (id != image.id) { return(BadRequest()); } _context.Entry(image).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!imageExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putorderdetail(int id, orderdetail orderdetail) { if (id != orderdetail.id) { return(BadRequest()); } _context.Entry(orderdetail).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!orderdetailExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Puttrainning(int id, trainning trainning) { if (id != trainning.id) { return(BadRequest()); } _context.Entry(trainning).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!trainningExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutRecruitment(int id, Recruitment recruitment) { if (id != recruitment.id) { return(BadRequest()); } _context.Entry(recruitment).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RecruitmentExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putcomment(int id, request request) { if (id != request.id) { return(BadRequest()); } _context.Entry(request).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }