public ActionResult Create(string RepositoryName, string Description, string HomePage, bool Public) { if (!Authenticate()) { return(View("Login", GetBaseView(new LoginViewModel { Message = "You need to authenticate before being able to create a project", ReturnURL = Url.Action("Create", "Repository") }))); } Core.Models.Repository repo = BaseAPI.Create(RepositoryName, Description, HomePage, Public); return(RedirectToAction("Get", new { RepositoryName = repo.Name, Username = repo.Owner })); }