Beispiel #1
0
        public ActionResult EditEmployeePhone(ChangeEmployeePhoneModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Beispiel #2
0
        /// <summary>
        /// Gets the Edit Employee Phone page.
        /// </summary>
        /// <returns>The action result.</returns>
        public ActionResult EditEmployeePhone()
        {
            var model = new ChangeEmployeePhoneModel
            {
                EmployeeName       = "Employee Name A",
                CurrentPhoneNumber = "102-625-0254582"
            };

            ViewBag.DesktopStep1Instructions = MvcHelper.CreateFakeInstructions(4);
            ViewBag.DesktopStep2Instructions = MvcHelper.CreateFakeInstructions(2);
            ViewBag.MobileInstructions       = MvcHelper.CreateFakeInstructions(3);
            return(View(model));
        }