/// <summary> /// To Insert Driver list /// </summary> /// <param name="DriverCode"></param> /// <param name="IsActive"></param> /// <returns></returns> public List<DriverDetail> GetDriverList(string DriverCode, bool? IsActive) { List<DriverDetail> lstDriverDetail = null; try { using (DriverDetailsDLL driverDetailDLL = new DriverDetailsDLL()) { lstDriverDetail = driverDetailDLL.GetDriverDetails(DriverCode, IsActive); } return lstDriverDetail; } catch (Exception e) { throw e; } }
/// <summary> /// To Get Driver list by their status /// </summary> /// <param name="DriverCode"></param> /// <param name="IsActive"></param> /// <returns></returns> public List<DriverDetail> GetDriverList(int DCID, bool? IsActive) { List<DriverDetail> lstDriverDetail = null; try { using (DriverDetailsDLL driverDetailDLL = new DriverDetailsDLL()) { lstDriverDetail = driverDetailDLL.GetDriverDetails(DCID, IsActive); } return lstDriverDetail; } catch { throw; } }