Beispiel #1
0
        //[ValidationAspect(typeof(ProductValidator))]
        public IResult Add(Car car)
        {
            _carDal.Add(car);
            DateTime myDateTime = DateTime.Now;

            _parkHistoryDal.Add(new ParkHistory()
            {
                CarId     = car.Id,
                EntryTime = myDateTime,
            });
            return(new SuccessResult(Messages.CarAdded));
        }
 public IResult Add(ParkHistory parkHistorydal)
 {
     _parkHistoryDal.Add(parkHistorydal);
     return(new SuccessResult(Messages.ParkHistoryAdded));
 }