Exemplo n.º 1
0
        /// <summary>
        /// 线裤增加
        /// </summary>
        /// <param name="lineAddViewModel"></param>
        /// <returns></returns>
        public int Station_Add(StationAddViewModel lineAddViewModel)
        {
            var bus_Sation = _IMapper.Map <StationAddViewModel, Bus_Station>(lineAddViewModel);

            _IBusStationRepository.Add(bus_Sation);
            return(_IBusStationRepository.SaveChanges());
        }