Example #1
0
 public TelefoneViewModel Update(TelefoneViewModel obj)
 {
     BeginTransaction();
     _telefoneService.Update(Mapper.Map <TelefoneViewModel, Telefone>(obj));
     Commit();
     return(obj);
 }
Example #2
0
 public IActionResult Atualizar(Telefone obj)
 {
     _service.Update(obj);
     return(Ok(obj));
 }
        public IActionResult EditarTelefone(int id, [FromBody] Telefone tel)
        {
            _telService.Update(tel);

            return(new NoContentResult());
        }