Пример #1
0
        public ActionResult DropSingleMember(int orgId, int peopleId)
        {
            var model = new OrgDrop(CurrentDatabase);

            model.DropSingleMember(orgId, peopleId);
            return(Content("ok"));
        }
Пример #2
0
        public ActionResult Index(Guid qid)
        {
            LongRunningOperation.RemoveExisting(CurrentDatabase, qid);
            var model = new OrgDrop(CurrentDatabase, qid);

            return(View(model));
        }
Пример #3
0
        public ActionResult Index(Guid qid)
        {
            LongRunningOperation.RemoveExisting(DbUtil.Db, qid);
            var model = new OrgDrop(qid);

            return(View(model));
        }
Пример #4
0
 public ActionResult Process(OrgDrop model)
 {
     model.UpdateLongRunningOp(DbUtil.Db, OrgDrop.Op);
     if (!model.Started.HasValue)
     {
         model.Process(DbUtil.Db);
     }
     return(View(model));
 }
Пример #5
0
        public ActionResult Process(OrgDrop model)
        {
            model.UpdateLongRunningOp(CurrentDatabase, OrgDrop.Op);
            if (!model.Started.HasValue)
            {
                model.Process(CurrentDatabase);
            }

            return(View(model));
        }
Пример #6
0
        public ActionResult Index(int id)
        {
            if (id != DbUtil.Db.CurrentOrgId0)
            {
                throw new Exception($"Current org has changed from {id} to {DbUtil.Db.CurrentOrgId0}, aborting");
            }
            var model = new OrgDrop(id);

            model.RemoveExistingLop(DbUtil.Db, id, OrgDrop.Op);
            return(View(model));
        }