public IActionResult Patch(int id, AnnotationUpdateRequest r) => Repo .Update(r.ToModel(ActualUser.Id, id), true) .ToActionResult(x => new { Message = "Annotation patched" });
public IActionResult Update(int id, AnnotationUpdateRequest r) => Repo .Update(r.ToModel(ActualUser.Id, id)) .ToActionResult(x => new { Message = "Annotation updated" });