Exemplo n.º 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());
        }
Exemplo n.º 2
0
        public ActionResult NotificationPartial()
        {
            var data = UoW.Instance().Notifications().GetAll();

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

            return(View(data));
        }
Exemplo n.º 4
0
        public ActionResult TaskPartial()
        {
            var tasks = UoW.Instance().Tasks().GetAll();

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

            return(View(tasks));
        }