Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. public class TasksController : Controller
  2.     {
  3.         private ITaskRepository taskRepository;
  4.  
  5.         public TasksController(ITaskRepository taskRepository)
  6.         {
  7.             this.taskRepository = taskRepository;
  8.         }
  9.         // GET: Tasks
  10.         public ActionResult Index()
  11.         {        
  12.             return View(taskRepository.GetAll());
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement