public ActionResult UpdateAttandance(long id) { tblUser user = Session[WebUtil.CURRENT_USER] as tblUser; if (!(user != null)) { return(RedirectToAction("RedirectToLogin", "user")); } string currentYear = DateTime.Now.Year.ToString(); VMMonthlyHR Model = new MonthlyHRHandler().GetMonthlyHRAttandace(id).ToVMMonthlyHR(); return(PartialView("~/Views/MonthlyHR/_UpdateAttandance.cshtml", Model)); }
public ActionResult GetMonthlyHR(string id) { tblUser user = Session[WebUtil.CURRENT_USER] as tblUser; if (!(user != null)) { return(RedirectToAction("RedirectToLogin", "user")); } ViewBag.Month = id; string currentYear = DateTime.Now.Year.ToString(); List <VMMonthlyHR> ModelList = new MonthlyHRHandler().GetMonthlyHR(id, currentYear).ToVMMonthlyHRList(); return(PartialView("~/Views/MonthlyHR/_Manage.cshtml", ModelList)); }