Exemple #1
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            SistTabl = await _context.SistTabl
                       .FirstOrDefaultAsync(m => m.Id == id);

            _context.SistTabl.Remove(SistTabl);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Composition",
                system: _contextUtils.GetSystemUrlByHeadClue(SistTabl.HeadClue)

                );

            return(Redirect(url));
        }
Exemple #2
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            Wavepure = await _context.Wavepure
                       .FirstOrDefaultAsync(m => m.Id == id);

            _context.Wavepure.Remove(Wavepure);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Transparency",
                system: _contextUtils.GetSystemUrlByHeadClue(Wavepure.HeadClue)

                );

            return(Redirect(url));
        }
Exemple #3
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            SistTabl.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);

            _context.SistTabl.Add(SistTabl);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Composition",
                system: systemUrl
                );

            return(Redirect(url));
        }
Exemple #4
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            DielDissLanguage.DielDiss.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            DielDissLanguage.LanguageId        = this.GetLanguageId();

            _context.DielDissLanguage.Add(DielDissLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Dielectric_Loss",
                system: systemUrl
                );

            return(Redirect(url));
        }
Exemple #5
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            ConstSelLanguage.ConstSel.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            ConstSelLanguage.LanguageId        = this.GetLanguageId();

            _context.ConstSelLanguage.Add(ConstSelLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Sellmeier",
                system: systemUrl
                );

            return(Redirect(url));
        }
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            HeatExpnLanguage.HeatExpn.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            HeatExpnLanguage.LanguageId        = this.GetLanguageId();

            _context.HeatExpnLanguage.Add(HeatExpnLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Thermal_Conductivity",
                system: systemUrl
                );

            return(Redirect(url));
        }
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            NlOpTablLanguage.NlOpTabl.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            NlOpTablLanguage.LanguageId        = this.GetLanguageId();

            _context.NlOpTablLanguage.Add(NlOpTablLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "NonlinearOptical",
                system: systemUrl
                );

            return(Redirect(url));
        }
Exemple #8
0
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            MechTablLanguage.MechTabl.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            MechTablLanguage.LanguageId        = this.GetLanguageId();

            _context.MechTablLanguage.Add(MechTablLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Piezoelectric_Coupling",
                system: systemUrl
                );

            return(Redirect(url));
        }
        public async Task <IActionResult> OnPostAsync(string systemUrl)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            ElemTablNewLanguage.ElemTablNew.HeadClue = _contextUtils.GetHeadClueBySystemUrl(systemUrl);
            ElemTablNewLanguage.LanguageId           = this.GetLanguageId();

            _context.ElemTablNewLanguage.Add(ElemTablNewLanguage);

            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Lattice",
                system: systemUrl
                );

            return(Redirect(url));
        }
        public async Task <IActionResult> OnPostAsync(int id)
        {
            ConstSelLanguage = await _context.ConstSelLanguage
                               .Include(h => h.ConstSel)
                               .FirstOrDefaultAsync(m => m.Id == id);

            ConstSelInvariant = ConstSelLanguage.ConstSel;

            _context.ConstSelLanguage.Remove(ConstSelLanguage);
            _context.ConstSelInvariant.Remove(ConstSelInvariant);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Sellmeier",
                system: _contextUtils.GetSystemUrlByHeadClue(ConstSelInvariant.HeadClue)

                );

            return(Redirect(url));
        }
        public async Task <IActionResult> OnPostAsync(int id)
        {
            Elastic1Language = await _context.Elastic1Language
                               .Include(h => h.Elastic1)
                               .FirstOrDefaultAsync(m => m.Id == id);

            Elastic1Invariant = Elastic1Language.Elastic1;

            _context.Elastic1Language.Remove(Elastic1Language);
            _context.Elastic1Invariant.Remove(Elastic1Invariant);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Elastic",
                system: _contextUtils.GetSystemUrlByHeadClue(Elastic1Invariant.HeadClue)

                );

            return(Redirect(url));
        }
Exemple #12
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            NlOpTablLanguage = await _context.NlOpTablLanguage
                               .Include(h => h.NlOpTabl)
                               .FirstOrDefaultAsync(m => m.Id == id);

            NlOpTablInvariant = NlOpTablLanguage.NlOpTabl;

            _context.NlOpTablLanguage.Remove(NlOpTablLanguage);
            _context.NlOpTablInvariant.Remove(NlOpTablInvariant);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "NonlinearOptical",
                system: _contextUtils.GetSystemUrlByHeadClue(NlOpTablInvariant.HeadClue)

                );

            return(Redirect(url));
        }
        public async Task <IActionResult> OnPostAsync(int id)
        {
            MechTablLanguage = await _context.MechTablLanguage
                               .Include(h => h.MechTabl)
                               .FirstOrDefaultAsync(m => m.Id == id);

            MechTablInvariant = MechTablLanguage.MechTabl;

            _context.MechTablLanguage.Remove(MechTablLanguage);
            _context.MechTablInvariant.Remove(MechTablInvariant);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Piezoelectric_Coupling",
                system: _contextUtils.GetSystemUrlByHeadClue(MechTablInvariant.HeadClue)

                );

            return(Redirect(url));
        }
Exemple #14
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            HeatExpnLanguage = await _context.HeatExpnLanguage
                               .Include(h => h.HeatExpn)
                               .FirstOrDefaultAsync(m => m.Id == id);

            HeatExpnInvariant = HeatExpnLanguage.HeatExpn;

            _context.HeatExpnLanguage.Remove(HeatExpnLanguage);
            _context.HeatExpnInvariant.Remove(HeatExpnInvariant);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Thermal_Expansion",
                system: _contextUtils.GetSystemUrlByHeadClue(HeatExpnInvariant.HeadClue)

                );

            return(Redirect(url));
        }
Exemple #15
0
        public async Task <IActionResult> OnPostAsync(int id)
        {
            DielDissLanguage = await _context.DielDissLanguage
                               .Include(h => h.DielDiss)
                               .FirstOrDefaultAsync(m => m.Id == id);

            DielDissInvariant = DielDissLanguage.DielDiss;

            _context.DielDissLanguage.Remove(DielDissLanguage);
            _context.DielDissInvariant.Remove(DielDissInvariant);


            await _context.SaveChangesAsync();

            var url = _urlBuilder.BuildPropertyLink(
                this.GetLanguage(),
                "Dielectric_Loss",
                system: _contextUtils.GetSystemUrlByHeadClue(DielDissInvariant.HeadClue)

                );

            return(Redirect(url));
        }