Example #1
0
        public ActionResult TaskDetails(int taskID)
        {
            Models.Task task = _repository.GetTask(taskID);
            if (task != null)
            {
                return(PartialView("TaskDetailsPartial", task));
            }

            return(new EmptyResult());
        }
Example #2
0
        public ActionResult Detail(int?id)
        {
            if (id == null)
            {
                return(HttpNotFound());
            }

            ViewBag.Message = "Opis projektu";
            var task = _tasksRepository.GetTask((int)id);

            return(View(task));
        }