protected override List <TableRowActionViewModel> BuildTableViewActions() { var actions = base.BuildTableViewActions(); string searchQuery = GetHttpContextSearchQuery(); int pageNumber = GetHttpContextPageNumber(); string returnUrl = UrlEncoder.Encode($"/admin/foods?p={pageNumber}&q={searchQuery}"); string returnTitle = UrlEncoder.Encode("Foods"); actions.Insert(1, EntityTableMapper.CreateAction( "Upload Images", MaterialDesignIcons.ImagePlus, TableRowActionMethod.Get, $"/admin/roots/public/upload-files/uploads/images/foods/{{0}}?returnUrl={returnUrl}&returnTitle={returnTitle}", "[Id]")); actions.Insert(2, EntityTableMapper.CreateAction( "Select From Gallery", MaterialDesignIcons.ImageMove, TableRowActionMethod.Get, $"{this.ControllerRoute}{{0}}/gallery", "[Id]")); return(actions); }
protected override List <TableRowActionViewModel> BuildTableViewActions() { var actions = base.BuildTableViewActions(); actions.Insert(1, EntityTableMapper.CreateAction( "Foods", MaterialDesignIcons.FoodApple, TableRowActionMethod.Get, $"{this.ControllerRoute}{{0}}/foods", "[Id]")); return(actions); }