/// <summary> /// Retrieves the KYD Customer List. /// based on Duplicate Key Value. /// </summary> /// <param name="company_Code"></param> /// <param name="user_Code"></param> /// <param name="DCR_Date"></param> /// <param name="key_Column"></param> /// <returns></returns> public IEnumerable <KYDModel> GetKYDCustomerList(string company_Code, string user_Code, string DCR_Date, string key_Column) { try { _objDALKYD = new DAL_KYD(); return(_objDALKYD.GetKYDCustomerList(company_Code, user_Code, DCR_Date, key_Column)); } catch { throw; } }
public string SaveKYDInfo(string company_Code, string Key_Column, string KYDJson, string region_Code) { try { _objDALKYD = new DAL_KYD(); IEnumerable <KYDModel> IKYDModel = (IEnumerable <KYDModel>)JsonConvert.DeserializeObject(KYDJson, typeof(List <KYDModel>)); IKYDModel.ToList().ForEach(KYD => KYD.Region_Code = region_Code); return(_objDALKYD.SaveKYDInfo(company_Code, IKYDModel)); } catch { throw; } }