Exemple #1
0
        public EmployeeDetail PostEmployeeDetailsAdd(EmployeeDetail employeeDetail)
        {
            var result = _context.EmployeeDetails.Add(employeeDetail);

            _context.SaveChanges();
            return(employeeDetail);
        }
Exemple #2
0
        public ApplyLeave PostLeavesAdd(ApplyLeave applyLeave)
        {
            var result = _context.ApplyLeave.Add(applyLeave);

            var a = _context.SaveChanges();

            return(applyLeave);
        }