Beispiel #1
0
 public ActionResult Edit(int Id)
 {
     _select = "All";
     TaskEntity taskEntity = _taskRepository.SelectById(Id);
     TaskModel model = new TaskModel( taskEntity.Id, taskEntity.Title, taskEntity.IsDone, taskEntity.Priority );
     return View( model );
 }
Beispiel #2
0
 public ActionResult Edit(int id)
 {
     //_taskRepository.Delete(taskId);
     List<TaskEntity> te = _taskRepository.GetAll();
     TaskModel tm = new TaskModel();
     tm.Id = te[id].Id;
     tm.Title = te[id].Title;
     return View(tm);
 }