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 ); }
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); }