Esempio n. 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);
 }
Esempio n. 2
0
 public ShopDetailedDto GetHackerDetailedShop(int shopId)
 {
     if (BillingHelper.IsShopAdmin(shopId))
     {
         throw new BillingException("доступ запрещен");
     }
     return(GetDetailedShop(shopId));
 }
Esempio n. 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());
 }