public Car StoreCar(Car car)
 {
     if (car != null)
     {
         if (car.Id == 0)
         {
             car.CreatedOn = DateTime.Now;
             _carDao.Create(car);
         }
         else
         {
             car.LastUpdatedOn = DateTime.Now;
             _carDao.Update(car);
         }
     }
     return(car);
 }
Exemple #2
0
 public Car Create(long clientId, string number, string brand, int manufacturerYear)
 {
     return(_carDao.Create(clientId, number, brand, manufacturerYear));
 }