Пример #1
0
 public bool Insert(EmployeeVacationPermit employeevacationpermit)
 {
     int autonumber = 0;
     EmployeeVacationPermitDAC employeevacationpermitComponent = new EmployeeVacationPermitDAC();
     bool endedSuccessfuly = employeevacationpermitComponent.InsertNewEmployeeVacationPermit( ref autonumber,  employeevacationpermit.Name,  employeevacationpermit.VacationTypeID,  employeevacationpermit.PermitNumberinDays,  employeevacationpermit.IsMonthly,  employeevacationpermit.IsYearly);
     if(endedSuccessfuly)
     {
         employeevacationpermit.EmployeeVacationPermitID = autonumber;
     }
     return endedSuccessfuly;
 }
Пример #2
0
        public bool Insert( string Name,  int VacationTypeID,  int PermitNumberinDays,  bool IsMonthly,  bool IsYearly)
        {
            EmployeeVacationPermitDAC employeevacationpermitComponent = new EmployeeVacationPermitDAC();
            int EmployeeVacationPermitID = 0;

            return employeevacationpermitComponent.InsertNewEmployeeVacationPermit( ref EmployeeVacationPermitID,  Name,  VacationTypeID,  PermitNumberinDays,  IsMonthly,  IsYearly);
        }