public async Task <IActionResult> Create([FromBody] CreateProductAttributeRequest attributeRequest) { var Attr = new ProductAttributes { ArabicName = attributeRequest.ArabicName, EnglishName = attributeRequest.EnglishName, ProductId = attributeRequest.ProductId }; var status = await _productAttributeService.Create(Attr); if (status == 1) { var response = new { status = Ok().StatusCode, message = "Success" }; return(Ok(response)); } return(NotFound(new ErrorResponse { message = "Not Found", status = NotFound().StatusCode })); }