コード例 #1
0
ファイル: adminController.cs プロジェクト: hieuntp2/projectS2
        public async Task <ActionResult> hesonhangia(string my_heso_1, string my_heso_1_2, string my_heso_2_3, string my_heso_3)
        {
            MyDynamicEngine dynamic = new MyDynamicEngine();

            if (MyEngines.MyStaticFunction.MyFloatParse(my_heso_1) <= 0)
            {
                return(RedirectToAction("Index"));
            }
            await dynamic.setValue("hesonhan_1", my_heso_1);

            if (MyEngines.MyStaticFunction.MyFloatParse(my_heso_1_2) <= 0)
            {
                return(RedirectToAction("Index"));
            }
            await dynamic.setValue("hesonhan_1_2", my_heso_1_2);

            if (MyEngines.MyStaticFunction.MyFloatParse(my_heso_2_3) <= 0)
            {
                return(RedirectToAction("Index"));
            }
            await dynamic.setValue("hesonhan_2_3", my_heso_2_3);

            if (MyEngines.MyStaticFunction.MyFloatParse(my_heso_3) <= 0)
            {
                return(RedirectToAction("Index"));
            }
            await dynamic.setValue("hesonhan_3", my_heso_3);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
ファイル: adminController.cs プロジェクト: hieuntp2/projectS2
        public async Task <ActionResult> editemail(string fromemail, string password, string toemail)
        {
            MyDynamicEngine mydynamic = new MyDynamicEngine();
            await mydynamic.setValue("toemail", toemail);

            await mydynamic.setValue("fromemail", fromemail);

            await mydynamic.setValue("password", password);

            return(RedirectToAction("Index"));
        }
コード例 #3
0
ファイル: adminController.cs プロジェクト: hieuntp2/projectS2
        public async Task <ActionResult> edittygia(string tygia)
        {
            MyDynamicEngine dynamic = new MyDynamicEngine();

            if (MyEngines.MyStaticFunction.MyFloatParse(tygia) <= 0)
            {
                return(RedirectToAction("Index"));
            }
            await dynamic.setValue("tygia_WonVND", tygia);

            return(RedirectToAction("Index"));
        }