Beispiel #1
0
        public ActionResult GetFine(int id)
        {
            var list = EmployeeFine.Get(UserID, Employee.ID, Employee.BussinessID, DbAction.Employee.View, new EmployeeFineFilter(id));

            return(Json(new
            {
                html = RenderPartialViewToString("FineList", list)
            }, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult GetFine()
        {
            var list = EmployeeFine.Get(Employee.BussinessID, Employee.ID);

            if (Request.IsAjaxRequest())
            {
                return(Json(new
                {
                    html = RenderPartialViewToString("FineListPartial", list)
                }, JsonRequestBehavior.AllowGet));
            }
            return(View("FineList", list));
        }