public async Task <IActionResult> PostAsync([FromBody] ImageRequestModel value) { await _repo.AddImage(new Images { ImageBlob = Convert.FromBase64String(value.ImageBlob), ImageLink = value.ImageLink, TaggedFaces = value.TaggedFaces.Select(face => new FaceRectangle { Name = face.Name, X1 = face.X1 ?? 0, X2 = face.X2 ?? 0, Y1 = face.Y1 ?? 0, Y2 = face.Y2 ?? 0 }).ToList() }); return(Ok()); }