//[Route("createAdreess")] public IActionResult Create([FromBody] AdreessVO adreess) { if (adreess == null) { return(BadRequest()); } return(new OkObjectResult(_adreessAppService.Create(_adreessConverter.Parse(adreess)))); }
//[Route("alterAdreess")] public IActionResult Put([FromBody] AdreessVO adreess) { if (adreess == null) { return(BadRequest()); } var updatedadreess = _adreessAppService.Update(_adreessConverter.Parse(adreess)); if (updatedadreess == null) { return(BadRequest()); } return(new OkObjectResult(updatedadreess)); }