示例#1
0
        public void updateRequirement(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            Requirement requirement = new Requirement();

            requirement.Id                = Convert.ToInt32(context.Request.Form["id"].ToString());
            requirement.Priority          = Convert.ToInt32(context.Request.Form["priority"].ToString());
            requirement.RequirementStatus = Convert.ToInt32(context.Request.Form["status"].ToString());
            Boolean flag = requirementService.updateRequirementByManager(requirement);
            Dictionary <String, Object> dictionary = new Dictionary <string, object>();

            if (flag)
            {
                dictionary.Add("success", "true");
            }
            else
            {
                dictionary.Add("success", "false");
            }
            StringBuilder sb = JsonUtil.toJson(dictionary);

            context.Response.Write(sb.ToString());
        }