Ejemplo n.º 1
0
 //[Route("createAdreess")]
 public IActionResult Create([FromBody] AdreessVO adreess)
 {
     if (adreess == null)
     {
         return(BadRequest());
     }
     return(new OkObjectResult(_adreessAppService.Create(_adreessConverter.Parse(adreess))));
 }
Ejemplo n.º 2
0
        //[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));
        }