public async Task <TourEntitiesGetRes> GetTourEntities(TourEntitiesGetReq tourEntitiesGetReq, string ticket) { TourEntitiesGetRes tourEntitiesGetRes = new TourEntitiesGetRes(); tourEntitiesGetRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceTourEntity:GetTourEntities"), tourEntitiesGetReq, typeof(TourEntitiesGetRes), ticket); return(tourEntitiesGetRes); }
public async Task <TourEntitiesGetRes> GetDynamicTourEntities([FromBody] TourEntitiesGetReq request) { var response = new TourEntitiesGetRes(); try { if (request != null && !string.IsNullOrEmpty(request.QRFID)) { response = await _positionRepository.GetDynamicTourEntities(request); } else { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "QRF ID can not be Null/Zero."; } } catch (Exception ex) { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message; } return(response); }