Beispiel #1
0
        public IList <DomainModel.Bike> SearchBikes()
        {
            List <Bike> bikes = new List <Bike>();

            Logging.LogInfo("===============StarSearchBike=============");
            using (var context = DbContextManager.CreateRepository <IDbContextBikes>())
            {//Sega tuka ke dojde Query-to sto go pisuvavme vo Business Layer
                bikes = ((RegistarDbContext)context).Bikes.OrderBy(p => p.Colour).Take(2).ToList();
            }
            Logging.LogInfo("===============EndSearchBike===============");
            return(bikes);
        }