public async Task <IActionResult> Post([FromBody] Categorie categorie) { try { await _categorieService.AddCategorie(categorie); return(Ok()); }catch (RecordAlreadyExistException ex) { return(BadRequest(ex.Message)); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }