Ejemplo n.º 1
0
        public ActionResult MarkAttendace(DashBoard.Models.AttendanceModel model)
        {
            DATA.Domains.Attendance attendance = new DATA.Domains.Attendance
            {
                EmployeeName = model.EmployeeName,
                IsAbsent     = model.IsAbsent,
                IsPresenet   = model.IsPresenet,
                EmployeeId   = model.EmployeeId,
                Date         = DateTime.Now
            };
            employeeProvider.AddAttendace(attendance);
            TempData["alert"] = GetAlert("Marked", "success");

            return(RedirectToAction("AttendaceSheet"));
        }