コード例 #1
0
 public List <Car> GetAvaliableCars(string starttime, string stoptime)
 {
     try
     {
         return(dataBaseRepository.AvaliableCars(Convert.ToDateTime(starttime), Convert.ToDateTime(stoptime)));
     }
     catch (Exception ex)
     {
         SaveException.Log("webErrors.txt", ex);
         throw new WebFaultException <string>("Sorry something went wrong when trying to get a list of cars from Database", HttpStatusCode.InternalServerError);
     }
 }
コード例 #2
0
 public List <Car> GetAvaliableCars(DateTime start, DateTime stop)
 {
     return(dataBaseRepository.AvaliableCars(start, stop));
 }