public ActionResult DeleteConfirmed(Guid systemid) { Models.Symbol symbol = _symbolService.GetSymbol(systemid); bool hasAccess = _authorizationService.HasAccess(symbol.Owner, ClaimsPrincipal.Current.GetOrganizationName()); if (!hasAccess) { return(new HttpStatusCodeResult(HttpStatusCode.Unauthorized)); } _symbolService.RemoveSymbol(symbol); return(RedirectToAction("Index")); }