Example #1
0
 void IAccountService.DeletePayment(ApplicationVersion applicationVersion, Guid paymentUID)
 {
     RunSecurity(applicationVersion, (user) =>
     {
         if (!user.Rights.Contains("CreatePayment", StringComparer.InvariantCultureIgnoreCase))
         {
             throw new SecurityAccessDeniedException("У вас нет прав удалять оплату");
         }
         _RepositoryAccount.DeletePayment(paymentUID, user);
         return(true);
     });
 }