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()); }
public async Task <IActionResult> Putuser(string auth, user user) { if (auth != user.gauth) { return(BadRequest()); } _context.Entry(user).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!userExists(auth)) { return(NotFound()); } else { throw; } } return(NoContent()); }