public List <CategoryDTO> GetAllCategories() { var tempList = broker.GetAllCategories(); List <CategoryDTO> list = new List <CategoryDTO>(); foreach (var category in tempList) { list.Add(CategoryMapper.DBCategoryToCategoryDTO(category)); } return(null); }