public static bool DeleteBookCase(string jsonStr) { BookCase bc = null; try { JavaScriptSerializer js = new JavaScriptSerializer(); bc = js.Deserialize <BookCase>(jsonStr); return(bc != null?BookCatologManger.DeletebookCase(bc) : false); //return bc; } catch (Exception) { return(false); // return bc; } }