public ActionResult DeleteAnnotation(int submissionId) { int.TryParse(HttpContext.User.Identity.Name, out var userId); if (_annotationRepository.Delete(submissionId, userId)) { return(Ok()); } return(NotFound()); }
public Try <Unit> Execute(long id) => () => fun((long x) => repository.Delete(x))(id);