Beispiel #1
0
 public async Task Create(CreateBrandDto input)
 {
     await BrandManager.CreateBrand(
         input.Name,
         input.BrandImageId,
         input.Description
         );
 }
Beispiel #2
0
        public IHttpActionResult Create(Brand brand)
        {
            string response = _brandManager.CreateBrand(brand);

            if (response == "already")
            {
                return(Conflict());
            }
            else if (response != "created")
            {
                return(InternalServerError());
            }
            return(Ok());
        }
        // POST: api/Brand

        public IHttpActionResult Post([FromBody] Brands brand)
        {
            var response = _IBrandManager.CreateBrand(brand);

            return(Ok(response));
        }