public ActionResult CheckAttendanceManual(CheckAttendanceManualBindModel Model) { AttendanceBusiness AttendanceBO = new AttendanceBusiness(); AttendanceBO.WriteAttendanceManualLog(Model.Username, Model.RollCallID, Model.Date, Model.AttendanceChecks); return(Json(new { message = "Success" })); }
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")); }