PaymentLookModel IAccountService.UpdatePayment(ApplicationVersion applicationVersion, PaymentLookModel payment) { return(RunSecurity(applicationVersion, (user) => { if (!user.Rights.Contains("CreatePayment", StringComparer.InvariantCultureIgnoreCase)) { throw new SecurityAccessDeniedException("У вас нет прав изменять оплату"); } return _RepositoryAccount.UpdatePayment(payment, user); })); }