示例#1
0
        //// 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));
        }
示例#2
0
 // GET: TaskRotation
 public ActionResult Index()
 {
     return(View(_repository.List()));
 }