public void StealShopMoney(int shopId, int modelTo, decimal amount, string comment) { if (BillingHelper.IsShopAdmin(shopId)) { throw new BillingException("доступ запрещен"); } MakeTransferLegSIN(shopId, modelTo, amount, comment); }
public ShopDetailedDto GetHackerDetailedShop(int shopId) { if (BillingHelper.IsShopAdmin(shopId)) { throw new BillingException("доступ запрещен"); } return(GetDetailedShop(shopId)); }
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()); }