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