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