public ServiceCallResult Post(serviceSettings settings) { var result = new ServiceCallResult { Success = true }; try { if (string.IsNullOrEmpty(settings.Address)) { settings.Address = configuration["address"]; } result.Data = ServiceCall.Call(settings); } catch (Exception ex) { result.Success = false; result.Data = ex.Message; } return(result); }