public async Task <IActionResult> GetUserActivity([FromRoute] string username) { var result = await _userSvc.GetUserActivity(username); if (result != null) { return(Ok(new { Message = "Fetched user activities successfully!", data = result })); } return(BadRequest(new { Message = "Could not fetch user activities." })); }