Beispiel #1
0
        public ApplyLeave PutApplyLeave(int id, ApplyLeave applyLeave)
        {
            var res = _context.Entry(applyLeave).State = EntityState.Modified;


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


            _context.SaveChangesAsync();
            return(employeeDetail);
        }