public GoAheadNewDeptSetRes SetGoAheadNewDepartures(GoAheadNewDeptSetReq objGoAheadNewDeptSetReq, string token) { GoAheadNewDeptSetRes model = new GoAheadNewDeptSetRes(); model = handoverProviders.SetGoAheadNewDepartures(objGoAheadNewDeptSetReq, token).Result; return(model); }
public async Task <GoAheadNewDeptSetRes> SetGoAheadNewDepartures(GoAheadNewDeptSetReq goAheadNewDeptSetReq, string ticket) { GoAheadNewDeptSetRes objGoAheadNewDeptSetRes = new GoAheadNewDeptSetRes(); objGoAheadNewDeptSetRes = await serviceProxy.PostData(_configuration.GetValue <string>("Handover:SetGoAheadNewDepartures"), goAheadNewDeptSetReq, typeof(GoAheadNewDeptSetRes), ticket); return(objGoAheadNewDeptSetRes); }
public async Task <GoAheadNewDeptSetRes> SetGoAheadNewDepartures([FromBody] GoAheadNewDeptSetReq request) { var response = new GoAheadNewDeptSetRes(); try { if (!string.IsNullOrEmpty(request?.QRFID)) { response = await _handoverRepository.SetGoAheadNewDepartures(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); }