public static List <string> OnSubmit(string tipoGastoID) { ExpensasEntities context = new ExpensasEntities(); gastosServ gastosServ = new gastosServ(context); var gastos = gastosServ.GetDetalleGastos(Convert.ToInt32(tipoGastoID), string.Empty).ToList(); return(gastos.Select(i => i.Detalle).ToList()); }
private void CargarGrillaGastos() { grdGastos.DataSource = _gastosServ.GetDetalleGastos(Convert.ToInt32(ddlTipoGastos.SelectedValue), txtDetalleBuscar.Text); grdGastos.DataBind(); lblPagina.Text = "Pagina " + (grdGastos.PageIndex + 1); }