Beispiel #1
0
        /// <summary>
        /// 根据站点增加线路  /  根据站点取消线路
        /// </summary>
        /// <param name="lineByStationAddViewModel"></param>
        /// <returns></returns>
        public int Station_To_Line_Add(LineByStationAddViewModel lineByStationAddViewModel)
        {
            var station_Info        = _IBusStationRepository.GetById(lineByStationAddViewModel.Id);
            var station_Info_update = _IMapper.Map <LineByStationAddViewModel, Bus_Station>(lineByStationAddViewModel, station_Info);

            _IBusStationRepository.Update(station_Info_update);
            return(_IBusStationRepository.SaveChanges());
        }
 public async Task <BusStationEntity> GetByIdAsync(Guid id)
 {
     return(await _repository.GetById(id).ConfigureAwait(false));
 }