public EmployeeDetail PostEmployeeDetailsAdd(EmployeeDetail employeeDetail) { var result = _context.EmployeeDetails.Add(employeeDetail); _context.SaveChanges(); return(employeeDetail); }
public ApplyLeave PostLeavesAdd(ApplyLeave applyLeave) { var result = _context.ApplyLeave.Add(applyLeave); var a = _context.SaveChanges(); return(applyLeave); }