Ejemplo n.º 1
0
 public object GetVehicleByBrand(string name)
 {
     try
     {
         var result = parkingRepository.GetVehicleByBrand(name);
         if (result != null)
         {
             return(result);
         }
         else
         {
             throw new Exception();
         }
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }