コード例 #1
0
 public IActionResult Patch(int id, AnnotationUpdateRequest r) =>
 Repo
 .Update(r.ToModel(ActualUser.Id, id), true)
 .ToActionResult(x => new { Message = "Annotation patched" });
コード例 #2
0
 public IActionResult Update(int id, AnnotationUpdateRequest r) =>
 Repo
 .Update(r.ToModel(ActualUser.Id, id))
 .ToActionResult(x => new { Message = "Annotation updated" });