public async Task <HttpResponseMessage> SaveColumnsSettingsAsync( int id, [FromBody] ProfileColumnsDto profileColumnsDto) { if (profileColumnsDto == null || profileColumnsDto.Items.IsEmpty()) { throw new BadRequestException( ErrorMessages.Collections.ColumnsSettingsModelIsIncorrect, ErrorCodes.BadRequest); } var profileColumns = new ProfileColumns(profileColumnsDto.Items); var customPropertiesChanged = await _collectionsService.SaveProfileColumnsAsync(id, profileColumns, Session.UserId); return(customPropertiesChanged ? Request.CreateResponse(HttpStatusCode.OK, ErrorMessages.ArtifactList.ColumnsSettings.ChangedCustomProperties) : Request.CreateResponse(HttpStatusCode.NoContent)); }