Exemplo n.º 1
0
        public async Task Delete(int tagId, string userId)
        {
            UserExistCheck(userId);
            TagExistCheck(tagId);

            var tag = context.Tags.SingleOrDefault(x => x.Id == tagId);

            context.Remove(tag);

            await context.SaveChangesAsync();
        }
Exemplo n.º 2
0
        public async Task Delete(int categoryId, string userId)
        {
            UserExistCheck(userId);
            CategoryExistCheck(categoryId);

            var category = context.Categories.SingleOrDefault(x => x.Id == categoryId);

            context.Remove(category);

            await context.SaveChangesAsync();
        }
Exemplo n.º 3
0
 public async Task <bool> DeleteAbsence(Absence Absence)
 {
     _context.Remove(Absence);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 4
0
 public async Task <bool> DeleteEmail(Email Email)
 {
     _context.Remove(Email);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteSubscription(Subscription Subscription)
 {
     _context.Remove(Subscription);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 6
0
 public async Task <bool> DeleteSMS(SMS SMS)
 {
     _context.Remove(SMS);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 7
0
 public async Task <bool> DeleteAttachment(Attachment Attachment)
 {
     _context.Remove(Attachment);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 8
0
 public async Task <bool> DeleteExpense(Expense Expense)
 {
     _context.Remove(Expense);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 9
0
 public async Task <bool> DeleteCreditNote(CreditNote CreditNote)
 {
     _context.Remove(CreditNote);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 10
0
 public async Task <bool> DeleteEmployee(Employee Employee)
 {
     _context.Remove(Employee);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 11
0
 public async Task <bool> DeleteBankAccount(BankAccount BankAccount)
 {
     _context.Remove(BankAccount);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 12
0
 public async Task <bool> DeleteTaxInfo(TaxInfo TaxInfo)
 {
     _context.Remove(TaxInfo);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 13
0
 public async Task <bool> DeleteDelayedChargeLine(DelayedChargeLine DelayedChargeLine)
 {
     _context.Remove(DelayedChargeLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 14
0
 public async Task <bool> DeleteTraining(Training Training)
 {
     _context.Remove(Training);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 15
0
 public async Task <bool> DeleteWebhookPost(WebhookPost WebhookPost)
 {
     _context.Remove(WebhookPost);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 16
0
 public async Task <bool> DeletePaymentBilling(PaymentBilling PaymentBilling)
 {
     _context.Remove(PaymentBilling);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 17
0
 public async Task <bool> DeleteCustomer(Customer customer)
 {
     _context.Remove(customer);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task<bool> DeleteTaxInformation(TaxInformation TaxInformation)
 {
     _context.Remove(TaxInformation);
     return (await _context.SaveChangesAsync()) > 0;
 }
Exemplo n.º 19
0
 public async Task <bool> DeleteVoucher(Voucher Voucher)
 {
     _context.Remove(Voucher);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 20
0
 public async Task <bool> DeleteAddress(Address Address)
 {
     _context.Remove(Address);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 21
0
 public async Task <bool> DeleteHoliday(Holiday Holiday)
 {
     _context.Remove(Holiday);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeletePaymentDetails(PaymentDetails PaymentDetails)
 {
     _context.Remove(PaymentDetails);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 23
0
 public async Task <bool> DeleteInvoiceLine(InvoiceLine InvoiceLine)
 {
     _context.Remove(InvoiceLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 24
0
 public async Task <bool> DeleteEstimateLine(EstimateLine EstimateLine)
 {
     _context.Remove(EstimateLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 25
0
 public async Task <bool> DeleteSupplier(Supplier Supplier)
 {
     _context.Remove(Supplier);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteSalesReceiptLine(SalesReceiptLine SalesReceiptLine)
 {
     _context.Remove(SalesReceiptLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
Exemplo n.º 27
0
 public void Delete(Account account)
 {
     _context.Remove(account);
 }
Exemplo n.º 28
0
 public async Task <bool> DeleteEquipment(Equipment Equipment)
 {
     _context.Remove(Equipment);
     return((await _context.SaveChangesAsync()) > 0);
 }