Пример #1
0
        public IList <Trip> GetList(int userId)
        {
            ITripDbProvider db = ObjectContainer.GetTripDbProvider();

            return(db.FindByUserId(userId));
        }
Пример #2
0
        public void Delete(int id)
        {
            ITripDbProvider db = ObjectContainer.GetTripDbProvider();

            db.Delete(id);
        }