public IActionResult GetAnnotationTypes() { return(getAATsQuery .Execute() .Match( x => Ok(x), ex => StatusCode(500, ex))); }
public IActionResult GetAll() => getAllQuery.Execute().Match( Succ: Ok, Fail: ex => StatusCode(500, ex));