Пример #1
0
 public void Add(carpark entity)  //implementation of Add() in IService
 {
     try
     {
         entity.carpark_status = 1;
         db.carparks.Add(entity);
         db.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }
 public void Add(slot_details entity)    //implementation of Add() in IService
 {
     try
     {
         entity.slot_details_status = 1;
         db.slot_details.Add(entity);
         db.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }