public bool CheckDuplicateMenu(string menuName) { AppMenuDAL appMenu = new AppMenuDAL(); try { LumexDBPlayer db = LumexDBPlayer.Start(); bool status = appMenu.CheckDuplicateMenu(menuName, db); db.Stop(); return(status); } catch (Exception) { throw; } finally { appMenu = null; } }