public async Task <ActionResult> DeleteReferenceAssembly(int id) { try { await _context.DeleteReferenceAssembly(id); return(new NoContentResult()); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } catch (ControllerUnauthorizedException) { return(new UnauthorizedResult()); } }