Ejemplo n.º 1
0
        public ActionResult History()
        {
            var model  = new SimpleVcs(_dataProvider);
            var result = model.LoadAssembliesHistory();

            return(View(result));
        }
Ejemplo n.º 2
0
        public ActionResult HistoryItem(string guid)
        {
            if (string.IsNullOrEmpty(guid))
            {
                return(View("History"));
            }

            var model  = new SimpleVcs(_dataProvider);
            var result = model.LoadChangesHistory(guid);

            return(View("HistoryItem", result));
        }
Ejemplo n.º 3
0
        public ActionResult Upload(HttpPostedFileBase file)
        {
            if (file == null)
            {
                return(View((object)null));
            }

            var model  = new SimpleVcs(_dataProvider);
            var result = model.SaveNewChanges(file.FileName, file.InputStream);

            return(View(result));
        }