コード例 #1
0
        //-----------METODOS SE BUSQUEDA DE MARCAS---------------------

        public static List <BrandModel> SelectAllBrands()
        {
            try
            {
                return(BrandConnection.SelectAllBrands());
            }
            catch (Exception ex)
            {
                throw;
            }
        }
コード例 #2
0
        //-----------METODOS SE ACME DE LA MARCA---------------------

        public static bool InsertBrand(string name)
        {
            try
            {
                BrandModel brandModel = new BrandModel()
                {
                    Name = name
                };
                return(BrandConnection.InsertBrand(brandModel));
            }
            catch (Exception ex)
            {
                throw;
            }
        }
コード例 #3
0
 public static BrandModel SelectBrandByID(int id)
 {
     try
     {
         BrandModel brandModel = new BrandModel()
         {
             Id_Brand = id
         };
         return(BrandConnection.SelectBrandByID(brandModel));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #4
0
 public static BrandModel SelectBrandByName(string name)
 {
     try
     {
         BrandModel brandModel = new BrandModel()
         {
             Name = name
         };
         return(BrandConnection.SelectBrandByName(brandModel));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #5
0
 public static bool DeleteBrandById(int id)
 {
     try
     {
         BrandModel brandModel = new BrandModel()
         {
             Id_Brand = id
         };
         return(BrandConnection.DeleteBrandById(brandModel));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #6
0
 public static bool UpdateBrandById(int id, string name)
 {
     try
     {
         BrandModel brandModel = new BrandModel()
         {
             Id_Brand = id,
             Name     = name
         };
         return(BrandConnection.UpdateBrandById(brandModel));
     }
     catch (Exception ex)
     {
         throw;
     }
 }