//// GET: Task/Details/5 //public ActionResult Details(int id) //{ // return View(); //} // GET: Task/Create public ActionResult Create() { var rotationsDb = _taskRotationRepository.List(); var model = new TaskViewModel(); model.ListOfTaskRotations = new SelectList(rotationsDb, "Id", "Name"); return(View(model)); }
// GET: TaskRotation public ActionResult Index() { return(View(_repository.List())); }