public ActionResult DropSingleMember(int orgId, int peopleId) { var model = new OrgDrop(CurrentDatabase); model.DropSingleMember(orgId, peopleId); return(Content("ok")); }
public ActionResult Index(Guid qid) { LongRunningOperation.RemoveExisting(CurrentDatabase, qid); var model = new OrgDrop(CurrentDatabase, qid); return(View(model)); }
public ActionResult Index(Guid qid) { LongRunningOperation.RemoveExisting(DbUtil.Db, qid); var model = new OrgDrop(qid); return(View(model)); }
public ActionResult Process(OrgDrop model) { model.UpdateLongRunningOp(DbUtil.Db, OrgDrop.Op); if (!model.Started.HasValue) { model.Process(DbUtil.Db); } return(View(model)); }
public ActionResult Process(OrgDrop model) { model.UpdateLongRunningOp(CurrentDatabase, OrgDrop.Op); if (!model.Started.HasValue) { model.Process(CurrentDatabase); } return(View(model)); }
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)); }