Exemple #1
0
        public void Inserir()
        {
            agenciador = new agenciador_tb();

            CarregarEntidade();

            new AgenciadorRepositorio().Inserir(agenciador);
        }
Exemple #2
0
        public void gvAgenciador_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                agenciador_tb obj = ((agenciador_tb)e.Row.DataItem);

                ((HyperLink)e.Row.FindControl("lnkEditar")).NavigateUrl = string.Concat("AgenciadorDetalhe?id=", obj.agenciador_id);
                ((HyperLink)e.Row.FindControl("lnkEditar")).Text        = obj.agenciador_id.ToString();
            }
        }
Exemple #3
0
 public void Alterar(agenciador_tb agenciador)
 {
     new API_GESCOM().Alterar <agenciador_tb>(string.Concat("/api/agenciador/Atualizar/", agenciador.agenciador_id), agenciador);
 }
Exemple #4
0
 public void Inserir(agenciador_tb agenciador)
 {
     new API_GESCOM().Inserir <agenciador_tb>("/api/agenciador", agenciador);
 }
Exemple #5
0
 public void RecuperarDados()
 {
     agenciador = new AgenciadorRepositorio().RecuperarPelaChave(Convert.ToInt32(Request["id"]));
 }