public int CloneLane (WebServiceLogin login, int lane_id, string new_name, bool copy_files) { using (DB db = new DB ()) { VerifyUserInRole (db, login, Roles.Administrator); return db.CloneLane (lane_id, new_name, copy_files).id; } }
public int CloneLane (WebServiceLogin login, int lane_id, string new_name, bool copy_files) { using (DB db = new DB ()) { var lane = FindLane (db, lane_id, null); VerifyUserInRoles (db, login, lane.additional_roles, false); return db.CloneLane (lane_id, new_name, copy_files).id; } }