public ActionResult MyAssets(string id = null) { if (id == null) { id = Guid.NewGuid().ToString(); return(RedirectToAction("New", new { id = id })); } EstadoUsuario.CurrentListPublicId = id; EDVGroupMyAssets edv = new EDVGroupMyAssets(); SetHeadCounters(); ViewBag.PublicID = id; AgenteGroupLists agente = new AgenteGroupLists(); edv.allowEdit = agente.IsGroupListOwner(id, this.User.Identity == null ? null : this.User.Identity.Name); EVListSummary summ = agente.SelectGroupListSummaryPorPublicID(id); edv.Summary = summ; edv.ListNavMenu = new EDPVListNavMenu <Enumerados.StepsForGroupList>(Modelo.Enumerados.StepsForGroupList.MyAssets); return(View(edv)); }
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)); }