Example #1
0
        [HttpGet("GetDashboardLista/{id_emp:int}")] //Obtener Imágen
        public List <DashboardE> GetDashboardLista(int id_emp)
        {
            List <DashboardE> result = new List <DashboardE>();


            result = DashboardN.GetDashboardLista(new Object[] {
                new SqlParameter("@Accion", "GETLIST"),
                new SqlParameter("@Id_empresa", id_emp)
            });

            return(result);
        }
Example #2
0
        public DashboardE SelectedDashboard([FromBody]  DashboardE Dashboard)
        {
            DashboardE result = new DashboardE();


            result = DashboardN.SetDashboard(new Object[] {
                new SqlParameter("@Accion", "SELECTED"),
                new SqlParameter("@Id", Dashboard.Id),
                new SqlParameter("@Id_empresa", Dashboard.Red.Id_empresa),
                new SqlParameter("@Selected", Dashboard.Selected),
            });
            return(result);
        }
Example #3
0
        public DashboardE InsertDashboard([FromBody]  DashboardE Dashboard)
        {
            DashboardE result = new DashboardE();


            result = DashboardN.SetDashboard(new Object[] {
                new SqlParameter("@Accion", "INGRESAR"),
                new SqlParameter("@Id_red", Dashboard.Red.Id),
                new SqlParameter("@Nombre", Dashboard.Nombre),
                new SqlParameter("@Descripcion", Dashboard.Descripcion),
                new SqlParameter("@Selected", Dashboard.Selected),
            });
            return(result);
        }
Example #4
0
        public DashboardE GetDashboard([FromBody]  DashboardE Dashboard)
        {
            DashboardE   result  = null;
            SqlParameter _accion = new SqlParameter("@Accion", "GETID");
            SqlParameter _id     = new SqlParameter("@Id", Dashboard.Id);

            Object[] Objeto = new Object[]
            {
                _accion,
                _id
            };

            result = DashboardN.GetDashboard(Objeto);
            return(result);
        }
Example #5
0
        public DashboardE GetIdSelected([FromBody]  DashboardE Dashboard)
        {
            DashboardE   result  = null;
            SqlParameter _accion = new SqlParameter("@Accion", "GETSELECT");
            SqlParameter _id     = new SqlParameter("@Id_empresa", Dashboard.Red.Id_empresa);

            Object[] Objeto = new Object[]
            {
                _accion,
                _id
            };

            result = DashboardN.GetIdSelected(Objeto);
            return(result);
        }