public static bool Add(OrderedDictionary parameters) { //using an ordered dictionary (associative array) to send query parameters int affectedRows = 0; //if affectedRows isn't 0, then the query has been successfull affectedRows = BookModel.Add(parameters); if (affectedRows == 0) { return(false); } else { return(true); } }