public async Task <List <object> > CheckVendorCodeExist(string vendorcode) { dynamic vendorExist = new object(); try { vendorExist = await _VendorRepo.CheckVendorCodeExist(vendorcode); } catch (Exception ex) { var logger = _loggerFactory.CreateLogger("internal_error_log"); logger.LogInformation("Problem happened in selecting the data for listpageviewAsync with message" + ex.Message); } return(vendorExist); }