/// <summary>
        ///
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        public IRestResponse ApiNotificationPost(AddNotificationRecordDto record)
        {
            var path = "/api/v1/notification";

            path = path.Replace("{format}", "json");

            var    queryParams  = new Dictionary <String, String>();
            var    headerParams = new Dictionary <String, String>();
            var    formParams   = new Dictionary <String, String>();
            var    fileParams   = new Dictionary <String, FileParameter>();
            String postBody     = null;

            postBody = ApiClient.Serialize(record); // http body (model) parameter

            // authentication setting, if any
            String[] authSettings = new String[] { };

            // make the HTTP request
            IRestResponse response = (IRestResponse)ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);

            if ((int)response.StatusCode >= 400)
            {
                throw new ApiException((int)response.StatusCode, "Error calling ApiNotificationPost: " + response.Content, response.Content);
            }
            if (response.StatusCode == 0)
            {
                throw new ApiException((int)response.StatusCode, "Error calling ApiNotificationPost: " + response.ErrorMessage, response.ErrorMessage);
            }

            return(response);
        }
        public IActionResult Create([FromBody] AddNotificationRecordDto record)
        {
            LastCall.lastCall = DateTime.Now;
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var response = _notificationApi.ApiNotificationPost(record);

            return(Ok(response.Content));
        }