Beispiel #1
0
        public async Task<List<T>> LoadCategories(string user)
        {
            List<Note> notes = await _repository.GetCategories(user);

            List<T> result = new List<T>();

            foreach (var item in notes)
            {
                result.Add(_mapper.Map<T>(item));
            }

            return result;
        }