﻿using System.Collections.Generic;
using Ligas.Core;

namespace Ligas.Domain.Team.Queries
{
    public class GetTeams : IQuery<IEnumerable<TeamsView>>
    {
        public IEnumerable<TeamsView> Execute(IQueryContext context)
        {
            return context.Repository.For<TeamsView>().GetAll();
        }
    }
}