public ActionResult Unwatch(string RepositoryName, string Username)
        {
            if (!Authenticate())
            {
                return(View("Login", GetBaseView("You need to authenticate before being able to unwatch a project")));
            }
            Core.Models.Repository repo = BaseAPI.Unwatch(Username, RepositoryName);

            return(View("Get", GetBaseView(repo)));
        }
        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 }));
        }
        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)));
        }
 public ActionResult Get(string RepositoryName, string Username)
 {
     Core.Models.Repository repo = BaseAPI.Get(Username, RepositoryName);
     return(View(GetBaseView(repo)));
 }