public ActionResult TaskDetails(int taskID) { Models.Task task = _repository.GetTask(taskID); if (task != null) { return(PartialView("TaskDetailsPartial", task)); } return(new EmptyResult()); }
public ActionResult Detail(int?id) { if (id == null) { return(HttpNotFound()); } ViewBag.Message = "Opis projektu"; var task = _tasksRepository.GetTask((int)id); return(View(task)); }