public ActionResult Create() { UsersActivityService usersActivityService = CreateUsersActivityService(); var usersActivities = usersActivityService.GetUsersActivities(); return(View(usersActivities)); }
private UsersActivityService CreateUsersActivityService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new UsersActivityService(userId); return(service); }
// GET: UsersActivity public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new UsersActivityService(userId); var model = service.GetUsersActivities(); return(View(model)); }