public ActionResult Summary(string id) { SetHeadCounters(); this.ViewBag.PublicID = id; AgenteGroupLists agente = new AgenteGroupLists(); EVListSummary ev = agente.SelectGroupListSummaryPorPublicID(id); EDVGroupSummary edv = new EDVGroupSummary(); edv.Summary = ev; edv.Summary.ShowDelta = false; IEnumerable <EVStaticList> lists = agente.SelectStaticListsHeadersByGroupId(id); edv.Lists = lists; edv.allowEdit = agente.IsGroupListOwner(id, this.User.Identity == null ? null : this.User.Identity.Name); ViewBag.AllowDelete = false; ViewBag.ShowGroupInfo = true; edv.ListNavMenu = new EDPVListNavMenu <Enumerados.StepsForGroupList>(Modelo.Enumerados.StepsForGroupList.Summary); return(View(edv)); }
public ActionResult ImportLinks(string id) { SetHeadCounters(); this.ViewBag.PublicID = id; AgenteGroupLists agente = new AgenteGroupLists(); if (!agente.IsGroupListOwner(id, User.Identity.Name)) { return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest, Messages.err_notAuthorizedForPage)); } IEnumerable <EVStaticList> lists = agente.SelectStaticListsHeadersByGroupId(EstadoUsuario.CurrentListPublicId); EDVImportLinks edv = new EDVImportLinks { Lists = lists }; ViewBag.ShowGroupInfo = true; edv.ListNavMenu = new EDPVListNavMenu <Enumerados.StepsForGroupList>(Modelo.Enumerados.StepsForGroupList.AddLists); return(View(edv)); }