public RedirectToActionResult AddActivity(string text) { var activity = new Activities { Text = text, DateTime = DateTime.Now, UserProfile = _databaseService.GetCurrentUserProfile(User) }; _databaseService.AddActivities(activity); return(RedirectToAction("Index")); }