public async Task <IActionResult> GetReport(int?id = null, int?amountForDays = null, int?numberOfDays = null, string status = null, int?employeeID = null, int?clientID = null, int?carID = null) { try { var cars = await _repository.GetReport(id, amountForDays, numberOfDays, status, employeeID, clientID, carID); return(Ok(cars)); }catch (Exception e) { //Log error Log.Error(e.Message); Log.Error(e.StackTrace); return(BadRequest("An error ocurred, contact IT Staff")); } }