public void AddCourier(BuisnesMail b)
 {
     try
     {
         using (var db = new LiteDatabase(@"Courier.db"))
         {
             LiteCollection <BuisnesMail> collection = db.GetCollection <BuisnesMail>("Business");
             collection.Insert(b);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
        /// <summary>
        /// Метод возвращет Business по его ID
        /// </summary>
        /// <param name="e">ID курьерской накладной</param>
        /// <returns>Найденная курьерская наладная</returns>
        public BuisnesMail GetBusinessId(int e)
        {
            BuisnesMail businessKN = null;

            try
            {
                using (var db = new LiteDatabase(@"Courier.db"))
                {
                    LiteCollection <BuisnesMail> collection = db.GetCollection <BuisnesMail>("Business");
                    businessKN = (BuisnesMail)collection.Find(d => d.DeliveryNoteId == e);
                }
            }
            catch (Exception)
            {
            }

            return(businessKN);
        }