public async Task <IActionResult> Add([FromBody] DataSet dataSet) { try { HttpResponseMessageResult res = new HttpResponseMessageResult() { IsSuccess = true }; dataSet = await Adapter.AddDataSet(dataSet); res.GetObjectForJson(dataSet); return(Ok(res)); } catch (Exception ex) { Logger.LogError(LoggingEvents.CRITICAL_ERROR, ex, ex.Message); return(StatusCode(500, ex.Message)); } }