Created
November 18, 2016 18:41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using LooseCoupling.Models; | |
using LooseCoupling.Services; | |
namespace LooseCoupling | |
{ | |
public class LooselyCoupledToDos | |
{ | |
public LooselyCoupledToDos(IToDoService service) | |
{ | |
_service = service; | |
} | |
public async Task<IEnumerable<ToDo>> All() | |
{ | |
IEnumerable<ToDo> todos = await _service.GetAll(); | |
return todos.ToList<ToDo>(); | |
} | |
private IToDoService _service; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment