public OrderStatus Update(OrderStatus entity)
 {
     Debug.WriteLine("UPDATING orderStatus in database");
     var existing = OrderStatuses.First(c => c.ID == entity.ID);
     Mapper.Map(entity, existing);
     return entity;
 }
 public OrderStatus Insert(OrderStatus entity)
 {
     Debug.WriteLine("INSERTING orderStatus into database");
     var nextID = OrderStatuses.Max(c => c.ID) + 1;
     entity.ID = nextID;
     OrderStatuses.Add(Mapper.Map(entity, new OrderStatus()));
     return entity;
 }
 public async Task<OrderStatus> UpdateAsync(OrderStatus entity)
 {
     return Update(entity);
 }
 public async Task<OrderStatus> InsertAsync(OrderStatus entity)
 {
     return Insert(entity);
 }