public IActionResult AddOrEdit(Brand brand) { var result = _service.AddOrEdit(brand); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }