public T001WDto GetT001WByIdImport(string id) { var dbData = _repository.Get(c => c.WERKS == id && c.NPPBKC_IMPORT_ID != null, null, includeTables).FirstOrDefault(); T001WDto tempDto = Mapper.Map <T001WDto>(dbData); tempDto.NPPBKC_ID = tempDto.NPPBKC_IMPORT_ID; var nppbkcData = _nppbkcbll.GetById(tempDto.NPPBKC_ID); if (nppbkcData != null) { tempDto.KppbcCity = nppbkcData.CITY; tempDto.KppbcNo = nppbkcData.KPPBC_ID; } return(tempDto); }
public static ZAIDM_EX_NPPBKC GetNppbkcById(string id) { IZaidmExNPPBKCBLL nppbkcbll = MvcApplication.GetInstance <ZaidmExNPPBKCBLL>(); return(nppbkcbll.GetById(id)); }