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); }
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); }