Exemple #1
0
        // GET: GroupList
        public ActionResult Index(int groupid)
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new GroupCheckListService(userId);
            var model   = service.GetCheckLists(groupid);

            return(View(model));
        }
Exemple #2
0
        public ActionResult Detials(int id)
        {
            var svc   = CreateMasterGroupService();
            var model = svc.GetMasterGroupById(id);

            var svc2 = new PostServices(Guid.Parse(User.Identity.GetUserId()));
            var sv3  = new GroupCheckListService(Guid.Parse(User.Identity.GetUserId()));

            ViewBag.PostList   = svc2.GetPostByGroupId(id);
            ViewBag.GCheckList = sv3.GetCheckLists(id);

            return(View(model));
        }