예제 #1
0
 public void StealShopMoney(int shopId, int modelTo, decimal amount, string comment)
 {
     if (BillingHelper.IsShopAdmin(shopId))
     {
         throw new BillingException("доступ запрещен");
     }
     MakeTransferLegSIN(shopId, modelTo, amount, comment);
 }
예제 #2
0
 public ShopDetailedDto GetHackerDetailedShop(int shopId)
 {
     if (BillingHelper.IsShopAdmin(shopId))
     {
         throw new BillingException("доступ запрещен");
     }
     return(GetDetailedShop(shopId));
 }
예제 #3
0
 public void HackShop(int shopId, int[] models)
 {
     if (BillingHelper.IsShopAdmin(shopId))
     {
         throw new BillingException("доступ запрещен");
     }
     if (models == null)
     {
         models = new int[0] {
         };
     }
     UpdateShopTrustedUsers(shopId, models.ToList());
 }