Example #1
0
        public ActionResult Create()
        {
            UsersActivityService usersActivityService = CreateUsersActivityService();
            var usersActivities = usersActivityService.GetUsersActivities();

            return(View(usersActivities));
        }
Example #2
0
        private UsersActivityService CreateUsersActivityService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new UsersActivityService(userId);

            return(service);
        }
Example #3
0
        // GET: UsersActivity
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new UsersActivityService(userId);
            var model   = service.GetUsersActivities();

            return(View(model));
        }