Beispiel #1
0
 public IActionResult OnGet(string contextKey)
 {
     Context = _repository.GetWithRelations(User.Identity.Name, contextKey);
     if (Context == null)
     {
         return(NotFound());
     }
     return(Page());
 }
Beispiel #2
0
        public IActionResult OnGet(string ownerUserName, string contextKey)
        {
            var context = _repository.GetWithRelations(ownerUserName, contextKey);

            if (context == null)
            {
                return(NotFound());
            }

            Context            = context;
            OwnedByCurrentUser = context.OwnerUserName == User.Identity.Name;
            ContextGraphviz    = context.ToGraphviz();

            return(Page());
        }