Example #1
0
 public bool CreateEntry(BillingEntry entry)
 {
     try
     {
         Entries.Add(entry);
         SaveList();
         return(true);
     }
     catch { return(false); }
 }
Example #2
0
 public bool DeleteEntry(Guid Id)
 {
     try
     {
         BillingEntry entry = Entries.First(i => i.BillableId == Id);
         Entries.Remove(entry);
         SaveList();
         return(true);
     }
     catch { return(false); }
 }
Example #3
0
 public bool UpdateEntry(BillingEntry entry)
 {
     try
     {
         BillingEntry oldentry = Entries.First(i => i.BillableId == entry.BillableId);
         oldentry.BillableDate = entry.BillableDate;
         oldentry.BillableTime = entry.BillableTime;
         oldentry.ClientName   = entry.ClientName;
         oldentry.Notes        = entry.Notes;
         SaveList();
         return(true);
     }
     catch { return(false); }
 }
Example #4
0
        public BillingEntry GetEntry(Guid Id)
        {
            BillingEntry entry = Entries.First(i => i.BillableId == Id);

            return(entry);
        }