AccountBillModel IAccountService.CreateAccountBill(ApplicationVersion applicationVersion, String accountNumber, DateTime dateAccountBill, IEnumerable <AccountBillLineRowModel> accountBillLines) { if (dateAccountBill == null) { throw new ArgumentNullException("Дата с/фактуры не была получена\r\nНе могу создать счет/фактуру"); } return(RunSecurity(applicationVersion, (user) => _RepositoryAccount.CreateAccountBill(accountNumber, user, dateAccountBill, accountBillLines))); }