public IEnumerable <ReportDto> ReportAll(ReportDto reportdto) { try { ReportEntity reportEntity = new ReportEntity { pONumber = reportdto.pONumber, storeNumber = reportdto.storeNumber, vendorCode = reportdto.vendorCode, receivingDate = reportdto.receivingDate, cancelDate = reportdto.cancelDate, login_entity = new LoginEntity { servername = reportdto.login_dto.servername, username = reportdto.login_dto.username, password = reportdto.login_dto.password, dBname = reportdto.login_dto.dBname }, }; return(_mapper.Map <IEnumerable <ReportEntity>, IEnumerable <ReportDto> > (_reportRepository.GetReport(reportEntity))); } catch (Exception ex) { logCentral.Error("BusinessUnitAll", ex); throw; } }
public IEnumerable <BusinessUnitDto> BusinessUnitAll() { try { return(_mapper.Map <IEnumerable <BusinessUnitEntity>, IEnumerable <BusinessUnitDto> > (_businessUnitRepository.GetAll().Where(a => a.jda_ip_address.Trim() != ""))); } catch (Exception ex) { logCentral.Error("BusinessUnitAll", ex); throw; } }
protected void Application_Error(object sender, EventArgs e) { logCentral.Error(HttpContext.Current.Error.Message, HttpContext.Current.Error.GetBaseException()); }