public ActionResult AddMenuItem(MenuItemDto data, Guid gridid) { using (var db = SessionProvider.CreateSession()) { var newgrid = db.Session.Menu.AddMenuItem(data, gridid); return new JSONNetResult(newgrid); } }
public override MenuItemDto AddMenuItem(MenuItemDto item, Guid gridId) { var grid = GetGrid(gridId); grid.UpdateResourceList(item.ResourcesLoc, CurrentCulture, Repository); var a = new GridElement { Position = item.Position, Content = item.Content, Type = item.Type, Skin = item.Skin, Parent = Repository.GridElements.Single(x => x.Id == new Guid(item.ParentId)), }; grid.GridElements.Add(a); Repository.SaveChanges(); return a.ToMenuItemDto(grid.GridElements); }
public abstract MenuItemDto UpdateMenuItem(MenuItemDto menuItem);
public abstract MenuItemDto AddMenuItem(MenuItemDto menuItem, Guid menuId);
public override MenuItemDto UpdateMenuItem(MenuItemDto menuItem) { throw new NotImplementedException(); }