Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public async Task <IActionResult> GetBPFCID(GetBPFCIDDto bpfcInfo)
 {
     return(Ok(await _bPFCEstablishService.GetBPFCID(bpfcInfo)));
 }