예제 #1
0
        public void CreatePartial(Task task)
        {
            task.Id        = UoW.Instance().Tasks().GetAll().Count() + 1;
            task.DateAdded = DateTime.Now;

            UoW.Instance().Tasks().Add(task);

            ControllerContext.HttpContext.Response.Redirect(ControllerContext.HttpContext.Request.Url.ToString());
        }
예제 #2
0
        public ActionResult NotificationPartial()
        {
            var data = UoW.Instance().Notifications().GetAll();

            return(PartialView("_NotificationPartial", data));
        }
예제 #3
0
        // GET: Notification
        public ActionResult Index()
        {
            var data = UoW.Instance().Notifications().GetAll();

            return(View(data));
        }
예제 #4
0
        public ActionResult TaskPartial()
        {
            var tasks = UoW.Instance().Tasks().GetAll();

            return(PartialView("_TasksPartial", tasks));
        }
예제 #5
0
        // GET: Task
        public ActionResult Index()
        {
            var tasks = UoW.Instance().Tasks().GetAll();

            return(View(tasks));
        }