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); } }
public List <Car> GetAvaliableCars(DateTime start, DateTime stop) { return(dataBaseRepository.AvaliableCars(start, stop)); }