public IActionResult ListModsByCreatorUsername(string username) { if (username != null && username.Trim() != "") { var users = _userService.GetAllUsers().Where(u => u.UserName == username); if (users.Count() > 0) { var mods = _modService.GetAllModsByCreatorId(users.ToList()[0].Id); ViewData["Users"] = users; return(View("ListMods", mods)); } else { return(View("ModNotFound")); } } return(View("Error")); }