public static void DeleteSkill(HttpRequestBase req, HttpResponseBase res) { var result = _employeeLogic.DeleteSkill(int.Parse(req["id"])); if (result) { res.Write(JsonConvert.SerializeObject(new RequestResult("Success", "Skill has been deleted."))); return; } else { res.Write(JsonConvert.SerializeObject(new RequestResult("Error", "Cannot delete skill."))); return; } }