Beispiel #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();
        }
Beispiel #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();
        }
 public async Task <bool> DeleteAbsence(Absence Absence)
 {
     _context.Remove(Absence);
     return((await _context.SaveChangesAsync()) > 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);
 }
Beispiel #6
0
 public async Task <bool> DeleteSMS(SMS SMS)
 {
     _context.Remove(SMS);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #7
0
 public async Task <bool> DeleteAttachment(Attachment Attachment)
 {
     _context.Remove(Attachment);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteExpense(Expense Expense)
 {
     _context.Remove(Expense);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #9
0
 public async Task <bool> DeleteCreditNote(CreditNote CreditNote)
 {
     _context.Remove(CreditNote);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteEmployee(Employee Employee)
 {
     _context.Remove(Employee);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteBankAccount(BankAccount BankAccount)
 {
     _context.Remove(BankAccount);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #12
0
 public async Task <bool> DeleteTaxInfo(TaxInfo TaxInfo)
 {
     _context.Remove(TaxInfo);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #13
0
 public async Task <bool> DeleteDelayedChargeLine(DelayedChargeLine DelayedChargeLine)
 {
     _context.Remove(DelayedChargeLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteTraining(Training Training)
 {
     _context.Remove(Training);
     return((await _context.SaveChangesAsync()) > 0);
 }
 public async Task <bool> DeleteWebhookPost(WebhookPost WebhookPost)
 {
     _context.Remove(WebhookPost);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #16
0
 public async Task <bool> DeletePaymentBilling(PaymentBilling PaymentBilling)
 {
     _context.Remove(PaymentBilling);
     return((await _context.SaveChangesAsync()) > 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;
 }
 public async Task <bool> DeleteVoucher(Voucher Voucher)
 {
     _context.Remove(Voucher);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #20
0
 public async Task <bool> DeleteAddress(Address Address)
 {
     _context.Remove(Address);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #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);
 }
Beispiel #23
0
 public async Task <bool> DeleteInvoiceLine(InvoiceLine InvoiceLine)
 {
     _context.Remove(InvoiceLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #24
0
 public async Task <bool> DeleteEstimateLine(EstimateLine EstimateLine)
 {
     _context.Remove(EstimateLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
Beispiel #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);
 }
Beispiel #27
0
 public void Delete(Account account)
 {
     _context.Remove(account);
 }
Beispiel #28
0
 public async Task <bool> DeleteEquipment(Equipment Equipment)
 {
     _context.Remove(Equipment);
     return((await _context.SaveChangesAsync()) > 0);
 }