public void RescheduleRevision (WebServiceLogin login, int lane_id, int host_id, int revision_id) { using (DB db = new DB ()) { VerifyUserInRole (db, login, Roles.Administrator); db.Audit (login, "WebServices.RescheduleRevision (lane_id: {0}, host_id: {1}, revision_id: {2})", lane_id, host_id, revision_id); db.DeleteFiles (host_id, lane_id, revision_id); db.DeleteLinks (host_id, lane_id, revision_id); db.ClearWork (lane_id, revision_id, host_id); db.DeleteWork (lane_id, revision_id, host_id); } }
public void ClearRevision (WebServiceLogin login, int lane_id, int host_id, int revision_id) { using (DB db = new DB ()) { VerifyUserInRole (db, login, Roles.Administrator); db.DeleteFiles (host_id, lane_id, revision_id); db.ClearWork (lane_id, revision_id, host_id); } }