Пример #1
0
        public static bool SaveBrand(string id, string name, string status)
        {
            InventoryBL bl    = new InventoryBL();
            tbl_Brands  brand = new tbl_Brands()
            {
                Brand_Id     = Convert.ToInt32(id),
                Brand_Name   = name,
                Brand_Status = status == "1" ? true : false
            };

            if (!bl.ValidateBrand(brand))
            {
                bool result = bl.SaveBrand(brand);
                return(result);
            }
            return(false);
        }