public async Task Create(CreateBrandDto input) { await BrandManager.CreateBrand( input.Name, input.BrandImageId, input.Description ); }
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)); }