public IEnumerable <WorkType> GetWorkTypes() { IWorkTypeRepository workTypeRepository = new WorkTypeRepository(DbContextSelector.getInstance().getDbFactory(DbContextSelector.DbName.Workflow)); return(workTypeRepository.GetAll().OrderBy(p => p.Sequence).ToList()); }