private dynamic Get_Options(int AU_AD_Code, int SD_PDN_Code) { var servDep = new CT_Service_Dep(); servDep = CT_Service_Dep.SingleOrDefault(@"where SD_AD_Code = @0 AND SD_PDN_Code = @1", AU_AD_Code, SD_PDN_Code); return(servDep); }
private CT_Service_Dep Get_CT_Service_Dep(dynamic data) { return(CT_Service_Dep.SingleOrDefault(@"where SD_AD_Code = @0 AND SD_PDN_Code = @1", UserSession.DealerEmpl.DE_AD_OM_Code, (int)data.SD_PDN_Code)); }