Пример #1
0
        public async Task <OpsFOCSetRes> SetBookingPositionFOC(OpsFOCSetReq opsFocSetReq, string ticket)
        {
            OpsFOCSetRes opsFocSetRes = new OpsFOCSetRes();

            opsFocSetRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceOperations:SetBookingPositionFOC"), opsFocSetReq, typeof(OpsFOCSetRes), ticket);

            return(opsFocSetRes);
        }
Пример #2
0
        public async Task <OpsFOCSetRes> SetBookingPositionFOC([FromBody] OpsFOCSetReq request)
        {
            var response = new OpsFOCSetRes();

            try
            {
                response = await _opsRepository.SetBookingPositionFOC(request);

                response.ResponseStatus.Status       = "Success";
                response.ResponseStatus.ErrorMessage = response != null ? "" : "No Records Found.";
            }
            catch (Exception ex)
            {
                response.ResponseStatus.Status       = "Failure";
                response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message;
            }

            return(response);
        }