コード例 #1
0
        public ActionResult Test(EmployeeModel employee)
        {
            // Result
            this.ViewBag.TriggerAction = @"Trigger Action:「Test(EmployeeModel employee)」";
            this.ViewBag.Result = ModelSerializer.Serialize(employee, "employee");

            // Return
            return View();
        }
コード例 #2
0
        public ActionResult Test(EmployeeModel employee)
        {
            // Result
            this.ViewBag.TriggerAction = @"Trigger Action:「Test(EmployeeModel employee)」";
            this.ViewBag.Id = employee.Id;
            this.ViewBag.Birthday = employee.Birthday;
            this.ViewBag.GenderType = GenderTypeConverter.Current.Serialize(employee.GenderType);

            // Return
            return View();
        }
コード例 #3
0
        public ActionResult Test(string id, DateTime birthday, [GenderType]GenderType? genderType)
        {
            // Employee
            var employee = new EmployeeModel();
            employee.Id = id;
            employee.Birthday = birthday;
            employee.GenderType = genderType;

            // Result
            this.ViewBag.TriggerAction = @"Trigger Action:「Test(string id, DateTime birthday, [GenderType]GenderType? genderType)」";
            this.ViewBag.Result = ModelSerializer.Serialize(employee);

            // Return
            return View();
        }