Example #1
0
        public void deleteMySupply(HttpContext context)
        {
            int supplyId = Convert.ToInt32(context.Request["Id"]);
            Dictionary <String, Object> dictionary = new Dictionary <string, object>();
            StringBuilder jsonString = new StringBuilder();

            if (supplyService.removeSupplyById(supplyId))
            {
                dictionary.Add("success", "true");
            }
            else
            {
                dictionary.Add("success", "false");
            }
            jsonString.Append(JsonUtil.toJson(dictionary));
            context.Response.Write(jsonString.ToString());
        }