public string deleteUser(string pID) { if (pID == ((string[])Session["userInfo"])[0]) { return("You cannot delete yourself!"); } if (_adminBLL.deleteUser(pID)) { return("User deleted succesfully!"); } else { return("An error occurred"); } }
public string deleteUser(int id) { var jsonSerializer = new JavaScriptSerializer(); return(jsonSerializer.Serialize(_adminBLL.deleteUser(id))); }