private IList <BindingListItem> GetBindingList(string subjectType) { IList <BindingListItem> dataSource = null; switch (subjectType) { case SubjectTypeRegistry.User: UserSystem userSys = new UserSystem(UnitOfWork); dataSource = userSys.GetBindingList(); break; case SubjectTypeRegistry.Project: ProjectSystem projSys = new ProjectSystem(UnitOfWork); dataSource = projSys.GetBindingList(); break; } return(dataSource); }
public UserFacade(IUnitOfWork unitOfWork) : base(unitOfWork) { UserSystem = new UserSystem(unitOfWork); }