public async Task <IActionResult> Put(string id, AIClipMetadataReviewResult result) { var record = await repo.GetById(id); if (record == null) { return(NotFound()); } record.comments = result.comments; record.moderator = result.moderator; record.dateModerated = result.dateModerated.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ"); record.reviewed = result.status.ToLower() == "reviewed" ? true : false; record.SRKWFound = (string.IsNullOrWhiteSpace(result.found)) ? "no" : result.found.ToLower(); if (!string.IsNullOrWhiteSpace(result.tags)) { var tagList = new List <string>(); tagList.AddRange(result.tags.Split(',').ToList().Select(x => x.Trim())); record.tags = string.Join(";", tagList); } await repo.Commit(); return(NoContent()); }