public bool AlterarUsuario(UsuarioTable usuario) { try { _context.Entry(usuario).State = EntityState.Modified; _context.SaveChanges(); return(true); } catch (Exception e) { return(false); } }
public bool InserirUsuario(UsuarioTable usuario) { try { _context.Usuario.Add(usuario); _context.SaveChanges(); return(true); } catch (Exception e) { return(false); } }
public bool AlterarUsuario([FromBody] UsuarioTable usuario) { return(_usuarioService.AlterarUsuario(usuario)); }
public bool InserirUsuario([FromBody] UsuarioTable usuario) { return(_usuarioService.InserirUsuario(usuario)); }