Beispiel #1
0
        public GoAheadNewDeptSetRes SetGoAheadNewDepartures(GoAheadNewDeptSetReq objGoAheadNewDeptSetReq, string token)
        {
            GoAheadNewDeptSetRes model = new GoAheadNewDeptSetRes();

            model = handoverProviders.SetGoAheadNewDepartures(objGoAheadNewDeptSetReq, token).Result;
            return(model);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }