Esempio n. 1
0
        public IActionResult Update(Costumer costumer)
        {
            var result = _costumerservice.Update(costumer);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Esempio n. 2
0
 public IActionResult Put([FromBody] Costumer model)
 {
     return(Ok(
                _costumerService.Update(model)
                ));
 }