예제 #1
0
 public async Task <IActionResult> RemoveAccess([FromForm] Guid id, [FromQueryAttribute] Guid applicationId)
 {
     if (ModelState.IsValid)
     {
         try
         {
             await invitationService.RemovePermissions(id, applicationId);
         }
         catch (AppException e)
         {
             return(RedirectToAction("view", "users", new { applicationId, error = e.Message }));
         }
     }
     return(RedirectToAction("view", "users", new { applicationId }));
 }