public IHttpActionResult GetDriverTripAmountbyPaymentType(DateTime FromDate, DateTime ToDate) { try { var driverBO = new DriverBO(); var DRIVERID = HttpContext.Current.Request.Headers["DRIVERID"]; var driverObj = driverBO.GetDriverTripAmountbyPaymentType(DRIVERID,FromDate,ToDate); if (driverObj != null) { return Ok(driverObj ); } else return NotFound(); } catch (Exception ex) { return InternalServerError(ex); } }
public IHttpActionResult GetDriverTripAmountbyPaymentType() { try { var driverBO = new DriverBO(); var DRIVERID = HttpContext.Current.Request.Headers["DRIVERID"]; var driverObj = driverBO.GetDriverTripAmountbyPaymentType(DRIVERID); if (driverObj != null) { return(Ok(driverObj)); } else { return(NotFound()); } } catch (Exception ex) { return(InternalServerError(ex)); } }