예제 #1
0
 public void Add(BusLocationBO busLocation)
 {
     if (busLocation == null)
     {
         throw new ArgumentNullException("busLocation");
     }
     db.busLocationRepository.Add(busLocation);
     unitofWork.Commit();
 }
예제 #2
0
        public IHttpActionResult SendLocation(Guid routeId, Guid busId)
        {
            BusLocationBO location = new BusLocationBO
            {
                BusId      = busId,
                RouteId    = routeId,
                UpdateTime = DateTime.Now
            };

            return(Ok());
        }