public OperationResult <IList <IDepartmentDTO> > GetAll() { IDepartmentBDC departmentBDC = (IDepartmentBDC)BDCFactory.Instance.Create(BDCType.DepartmentBDC); return(departmentBDC.GetAll()); }
public OperationResult <IDepartmentDTO> GetDepartment(int departmentId) { IDepartmentBDC departmentBDC = (IDepartmentBDC)BDCFactory.Instance.Create(BDCType.DepartmentBDC); return(departmentBDC.GetDepartment(departmentId)); }