public ApplyLeave PutApplyLeave(int id, ApplyLeave applyLeave) { var res = _context.Entry(applyLeave).State = EntityState.Modified; _context.SaveChangesAsync(); return(applyLeave); }
public EmployeeDetail PutEmployee(int id, EmployeeDetail employeeDetail) { var res = _context.Entry(employeeDetail).State = EntityState.Modified; _context.SaveChangesAsync(); return(employeeDetail); }