コード例 #1
0
        public ActionResult CheckAttendanceManual(CheckAttendanceManualBindModel Model)
        {
            AttendanceBusiness AttendanceBO = new AttendanceBusiness();

            AttendanceBO.WriteAttendanceManualLog(Model.Username, Model.RollCallID, Model.Date, Model.AttendanceChecks);

            return(Json(new { message = "Success" }));
        }
コード例 #2
0
        public ActionResult CheckAttendanceManual(CheckAttendanceManualBindModel Model)
        {
            AttendanceBusiness AttendanceBO = new AttendanceBusiness();

            AttendanceBO.WriteAttendanceManualLog(Model.Username, Model.RollCallID, Model.Date, Model.AttendanceChecks);

            String returnUrl = Model.ReturnUrl;

            if (Url.IsLocalUrl(returnUrl) && returnUrl.Length > 1 &&
                returnUrl.StartsWith("/") && !returnUrl.StartsWith("//") &&
                !returnUrl.StartsWith("/\\"))
            {
                return(Redirect(Model.ReturnUrl));
            }
            return(RedirectToAction("Index"));
        }