public async Task <IActionResult> AddUsersSampleSetsAsync([FromBody] UsersSampleSets sampleSets) { try { await _projectBL.AddUsersSampleSetsAsync(sampleSets); Log.Logger.Information($"new UsersSampleSets with ID {sampleSets.Id} created"); return(CreatedAtAction("AddUsersSampleSets", sampleSets)); } catch (Exception e) { Log.Logger.Error($"Error thrown: {e.Message}"); return(StatusCode(400)); } }