public JsonResult ObtenerLista(DraftLawFiltersViewModel ofilters, [Bind(Include = "period_id")] GeneralFilterViewModel generalfiltros)//DataTableAjaxPostModel model { DraftLawBL oDraftLawBL = new DraftLawBL(); //DraftLawFiltersViewModel ofilters = new DraftLawFiltersViewModel(); GridModel <DraftLawViewModel> grid = oDraftLawBL.ObtenerLista(ofilters, generalfiltros); return(Json(new { // this is what datatables wants sending back draw = ofilters.draw, recordsTotal = grid.total, recordsFiltered = grid.recordsFiltered, data = grid.rows })); }
public JsonResult ObtenerLista(DraftLawFiltersViewModel ofilters, [Bind(Include = "period_id")] GeneralFilterViewModel generalfiltros)//DataTableAjaxPostModel model { DraftLawBL oDraftLawBL = new DraftLawBL(); //DraftLawFiltersViewModel ofilters = new DraftLawFiltersViewModel(); UserBL oUserBL = new UserBL(); InvestigatorViewModel oInvestigatorViewModel = oUserBL.ObtenerInvestigator(AuthorizeUserAttribute.UsuarioLogeado().investigator_id); GridModel <DraftLawViewModel> grid = oDraftLawBL.ObtenerMisProyectosLey(ofilters, oInvestigatorViewModel.commissions, oInvestigatorViewModel.interest_areas, generalfiltros); return(Json(new { // this is what datatables wants sending back draw = ofilters.draw, recordsTotal = grid.total, recordsFiltered = grid.recordsFiltered, data = grid.rows })); }
public GridModel <DraftLawViewModel> ObtenerLista(DraftLawFiltersViewModel filters, GeneralFilterViewModel generalfiltros) { return(oRepositorio.ObtenerLista(filters, generalfiltros)); }
public GridModel <DraftLawViewModel> ObtenerMisProyectosLey(DraftLawFiltersViewModel ofilters, List <int> commissions, List <int> interest_areas, GeneralFilterViewModel generalfiltros) { return(oRepositorio.ObtenerMisProyectosLey(ofilters, commissions, interest_areas, generalfiltros)); }