Пример #1
0
        public ActionResult DeleteUpload(int sourceId)
        {
            SourceTag st = CurrentUserModel.GetSourceTag(sourceId);

            CurrentUserModel.DeleteSourceTag(st);
            return(RedirectToAction("Index", new { id = st.ProjectId }));
        }
Пример #2
0
        public ActionResult UpdateSource(int sourceTagId)
        {
            CurrentUserModel.CleanSources(sourceTagId);
            SourceTag st = CurrentUserModel.GetSourceTag(sourceTagId);

            BuildService.Build(CurrentUserModel.CurrentApplication.Id, st.ProjectId);
            return(RedirectToAction("Index", new { id = st.ProjectId }));
        }
Пример #3
0
        public ActionResult SetDevStatus(int id, int stagId, int value)
        {
            CurrentUserModel.ValidateProject(id);

            SourceTag stag = CurrentUserModel.GetSourceTag(stagId);

            if (stag.ProjectId != id)
            {
                throw new InvalidOperationException("Invalid source tag");
            }

            stag.DevStatus = (DevStatus)value;
            CurrentUserModel.UpdateSourceTag(stag);
            return(Content("OK"));
        }
Пример #4
0
        public ActionResult SourceTagPackage(int id, string platform)
        {
            SourceTag stag = CurrentUserModel.GetSourceTag(id);

            return(File(stag.GetFilePath(platform), "application/x-mpack", stag.AddinId + "-" + stag.AddinVersion + ".mpack"));
        }
Пример #5
0
        public ActionResult BuildLog(int id)
        {
            SourceTag stag = CurrentUserModel.GetSourceTag(id);

            return(File(stag.LogFile, "text/html"));
        }