Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TasksController : Controller
- {
- private ITaskRepository taskRepository;
- public TasksController(ITaskRepository taskRepository)
- {
- this.taskRepository = taskRepository;
- }
- // GET: Tasks
- public ActionResult Index()
- {
- return View(taskRepository.GetAll());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement