public async Task <BPFCEstablishDto> GetBPFCID(GetBPFCIDDto bpfcInfo) { var bpfc = await _repoBPFCEstablish .FindAll() .FirstOrDefaultAsync(x => x.ModelNameID == bpfcInfo.ModelNameID && x.ModelNoID == bpfcInfo.ModelNoID && x.ArticleNoID == bpfcInfo.ArticleNoID && x.ArtProcessID == bpfcInfo.ArtProcessID ); return(_mapper.Map <BPFCEstablish, BPFCEstablishDto>(bpfc)); }
public async Task <IActionResult> GetBPFCID(GetBPFCIDDto bpfcInfo) { return(Ok(await _bPFCEstablishService.GetBPFCID(bpfcInfo))); }