public IActionResult Add([FromBody] Product _product) { try { var result = _inventoryService.AddProduct(_product); if (result == true) { return(Ok(_inventoryService.Message)); } else { return(BadRequest(_inventoryService.Message)); } } catch (Exception Err) { return(BadRequest(Err + _inventoryService.Message)); } }