public static void RenameAccount(int AccountId, string Title) { if (!CanWork(AccountId)) { throw new AccessDeniedException(); } DBFinance.RenameAccount(AccountId, Title, Security.CurrentUser.UserID); }