Ejemplo n.º 1
0
        public static bool Edit(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.Edit(parameters);
            if (affectedRows == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }