Example #1
0
        public JsonResult ChangeCollectingPoint(string cp)
        {
            Employee   emp = EmployeeData.FindByUserName((string)Session["username"]);
            Department dep = DepartmentData.GetDepById(emp.department.Id);

            DepartmentData.SetColPoint(dep.Id, cp);

            object new_amount = new { cp = cp };

            return(Json(new_amount, JsonRequestBehavior.AllowGet));
        }