//public List<BankMasterLookupDto> GetLookup() //{ // var lstBankMasterLookupDtos = new List<BankMasterLookupDto>(); // var uspBankMasterLookupResults = _dbContext.uspBankMasterLookup().ToList(); // foreach (var bank in uspBankMasterLookupResults) // { // BankMasterLookupDto lookupDto = Mapper.Map<uspBankMasterLookup_Result, BankMasterLookupDto>(bank); // lstBankMasterLookupDtos.Add(lookupDto); // } // return lstBankMasterLookupDtos; //} public BankMasterDto GetByID(int bankEntryId) { uspBankMasterGetByBankId_Result objuspBankMasterGetByBankIdResult = _dbContext.uspBankMasterGetByBankId(bankEntryId).ToList().FirstOrDefault(); BankMasterDto objBankMasterDto = AutoMapperEntityConfiguration.Cast <BankMasterDto>(objuspBankMasterGetByBankIdResult); return(objBankMasterDto); }