Ejemplo n.º 1
0
        public int AddEditSubCategory(int SubCategoryID, string Title, string ImageUrl, string Description, int CategoryID, string MetaTitle, string MetaKeyword, string MetaDescription)
        {
            int       id;
            DataTable dt = new DataTable();

            using (AustraliaDAL.DataSet1TableAdapters.tblSubCategoryTableAdapter objSubCategory = new AustraliaDAL.DataSet1TableAdapters.tblSubCategoryTableAdapter())
            {
                dt = objSubCategory.AddEditSubCategory(SubCategoryID, Title, ImageUrl, Description, CategoryID, MetaTitle, MetaKeyword, MetaDescription);
            }
            id = Convert.ToInt32(dt.Rows[0]["SubCategoryID"].ToString());
            return(id);
        }