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