public static List <ServiceAvailableDateInfo> GetServiceDates(GetServiceDateInfo getServiceDateObj, AspxCommonInfo aspxCommonObj) { try { List <ServiceAvailableDateInfo> lstServDate = AspxServiceProvider.GetServiceDates(getServiceDateObj, aspxCommonObj); return(lstServDate); } catch (Exception e) { throw e; } }
public static List <ServiceAvailableDateInfo> GetServiceDates(GetServiceDateInfo getServiceDateObj, AspxCommonInfo aspxCommonObj) { try { List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj); parameter.Add(new KeyValuePair <string, object>("@ServiceID", getServiceDateObj.ServiceID)); parameter.Add(new KeyValuePair <string, object>("@BranchID", getServiceDateObj.BranchID)); parameter.Add(new KeyValuePair <string, object>("@EmployeeID", getServiceDateObj.EmployeeID)); SQLHandler sqlh = new SQLHandler(); List <ServiceAvailableDateInfo> lstServDate = sqlh.ExecuteAsList <ServiceAvailableDateInfo>("[dbo].[usp_Aspx_GetServiceDates]", parameter); return(lstServDate); } catch (Exception e) { throw e; } }