void IAccountService.CreatePayments(ApplicationVersion applicationVersion, PaymentFrom1CModel[] data) { RunSecurity(applicationVersion, (user) => { if (!user.Rights.Contains("CreatePayment", StringComparer.InvariantCultureIgnoreCase)) { throw new SecurityAccessDeniedException("У вас нет прав создать оплату"); } _RepositoryAccount.CreatePayments(data, user); return(true); }); }