Beispiel #1
0
 public EmployeesBLL GetByEmployeeNameAr(string EmployeeNameAr)
 {
     try
     {
         Employees Employee = new EmployeesDAL().GetByEmployeeNameAr(EmployeeNameAr);
         if (Employee != null)
         {
             EmployeesBLL EmployeeBLL = MapEmployee(Employee);
             EmployeeBLL.EmployeePicture = EmployeeBLL.GetEmployeePicture();
             return(EmployeeBLL);
         }
         else
         {
             return(null);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 public virtual EmployeesBLL GetByEmployeeIDWithEmpPic(int EmployeeID)
 {
     try
     {
         Employees Employee = new EmployeesDAL().GetByEmployeeID(EmployeeID);
         if (Employee != null)
         {
             EmployeesBLL EmployeeBLL = MapEmployee(Employee);
             EmployeeBLL.EmployeePicture = EmployeeBLL.GetEmployeePicture();
             return(EmployeeBLL);
         }
         else
         {
             return(null);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }