public List <GeneralPaymentsLookupDto> Lookup() { List <GeneralPaymentsLookupDto> lstGeneralPaymentsLookupDto = new List <GeneralPaymentsLookupDto>(); List <uspFederationGeneralPaymentsLookup_Result> lstuspGeneralPaymentsLookup_Result = _dbContext.uspFederationGeneralPaymentsLookup().ToList(); foreach (var GeneralPayments in lstuspGeneralPaymentsLookup_Result) { GeneralPaymentsLookupDto GeneralpaymentsDto = Mapper.Map <uspFederationGeneralPaymentsLookup_Result, GeneralPaymentsLookupDto>(GeneralPayments); lstGeneralPaymentsLookupDto.Add(GeneralpaymentsDto); } return(lstGeneralPaymentsLookupDto); }