public static void TryCreate(Account requester, DataContext context, BugReport bugreport) { if (!requester.IsAtLeastAdmin()) { throw new ServerAuthorizeException("Du har inte behörighet att skapa felanmälan"); } bugreport.Validate(); }