public async Task <ActionResult <employee_recruit> > Postemployee_recruit(employee_recruit employee_recruit) { _context.employee_recruit.Add(employee_recruit); await _context.SaveChangesAsync(); return(CreatedAtAction("Getemployee_recruit", new { id = employee_recruit.Id }, employee_recruit)); }
public async Task <IActionResult> Putemployee_recruit(string id, employee_recruit employee_recruit) { if (id != employee_recruit.Id) { return(BadRequest()); } _context.Entry(employee_recruit).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!employee_recruitExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }