public static bool delbyid(string id) { if (String.IsNullOrWhiteSpace(id)) { return(false); } if (DTService.deletebyId(int.Parse(id))) { return(true); } return(false); }