public async Task <bool> StoreNewSupplierNoteAsync(int SupplierId, SupplierNote SupplierNote) { SupplierNote.SupplierId = SupplierId; _context.SupplierNotes.Add(SupplierNote); return((await _context.SaveChangesAsync()) > 0); }
public async Task <bool> DeleteSupplierNote(SupplierNote SupplierNote) { _context.Remove(SupplierNote); return((await _context.SaveChangesAsync()) > 0); }
public async Task <bool> UpdateSupplierNoteAsync(int SupplierId, SupplierNote SupplierNote) { SupplierNote.SupplierId = SupplierId; return((await _context.SaveChangesAsync()) > 0); }