// GET: SymbolFiles/Create public ActionResult Create(Guid systemid) { ViewBag.Size = new SelectList(CodeList.Size, "Key", "Value"); ViewBag.SymbolGraphics = new SelectList(CodeList.SymbolGraphics, "Key", "Value"); SymbolFile symbolFile = new SymbolFile(); symbolFile.Symbol = _symbolService.GetSymbol(systemid); return(View(symbolFile)); }
public List <Models.Api.Symbol> GetSymbol(string uuid) { var symbol = _symbolService.GetSymbol(Guid.Parse(uuid)); List <Models.Symbol> symbolList = new List <Models.Symbol>(); symbolList.Add(symbol); var symbolFiles = ConvertRegister(symbolList); return(symbolFiles); }
// GET: Files/Details/5 public ActionResult Details(Guid?systemid) { if (systemid == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Models.Symbol symbol = _symbolService.GetSymbol(systemid.Value); if (symbol == null) { return(HttpNotFound()); } ViewBag.HasAccess = false; ViewBag.IsAdmin = false; if (Request.IsAuthenticated) { ViewBag.HasAccess = _authorizationService.HasAccess(symbol.Owner, ClaimsPrincipal.Current.GetOrganizationName()); ViewBag.IsAdmin = _authorizationService.IsAdmin(); } return(View(symbol)); }