public void DeleteBillFile(int billId) { DbContext.Remove(BillFiles.Single(x => x.BillId == billId)); DbContext.SaveChanges(); }
public BillFile GetBillFile(int billId) { return(BillFiles .Single(x => x.BillId == billId) .ToModel()); }
public void DeleteBillFile(int billId) { DbContext.Remove(BillFiles.Single(x => x.BillId == billId)); DbContext.SaveChanges(); }
public BillFile GetBillFile(int billId) { return(BillFiles .Single(x => x.BillId == billId) .ToModel()); }