public ActionResult Fork(string RepositoryName, string Username) { if (!Authenticate()) { return(View("Login", GetBaseView(new LoginViewModel { Message = "You need to authenticate before being able to fork a project", ReturnURL = Url.Action("Fork", "Repository", new { RepositoryName, Username }) }))); } Core.Models.Repository repo = BaseAPI.Fork(Username, RepositoryName); return(View("Get", GetBaseView(repo))); }