Beispiel #1
0
        public object CreateBrand(BrandReq req)
        {
            Brand brand = new Brand();

            brand.BrandID     = req.BrandID;
            brand.BrandName   = req.BrandName;
            brand.CreateDay   = req.CreateDay;
            brand.Description = req.Description;
            brand.Note        = req.Note;
            return(brandRep.Create(brand));
        }
        //Tạo
        public object CreateBrand(BrandReq req)
        {
            //Khởi tạo đối tượng
            Brand brand = new Brand();

            //Gán giá trị
            brand.BrandId     = req.BrandId;
            brand.Name        = req.Name;
            brand.PhoneNumber = req.PhoneNumber;
            brand.Email       = req.Email;
            brand.Description = req.Description;
            brand.StartedDate = req.StartedDate;
            brand.Note        = req.Note;
            //Tạo giá trị vào bảng
            //Trả về giá trị
            return(_rep.Create(brand));
        }