public IHttpActionResult Update(MenuLinkList list)
        {
            CheckCurrentUserHasPermissionForObjects(ContentPredefinedPermissions.Update, new ContentScopeObject {
                StoreId = list.StoreId
            });

            _menuService.AddOrUpdate(list.ToCoreModel());
            return(Ok());
        }
Exemple #2
0
        public IHttpActionResult Update(MenuLinkList list)
        {
            if (list == null)
            {
                throw new ArgumentNullException(nameof(list));
            }

            CheckCurrentUserHasPermissionForObjects(ContentPredefinedPermissions.Update, new ContentScopeObject {
                StoreId = list.StoreId
            });

            _menuService.AddOrUpdate(list.ToCoreModel());
            return(Ok());
        }
 public IHttpActionResult Update(MenuLinkList list)
 {
     _menuService.Update(list.ToCoreModel());
     return(StatusCode(HttpStatusCode.NoContent));
 }
Exemple #4
0
 public IHttpActionResult Update(string storeId, MenuLinkList list)
 {
     _menuService.UpdateList(list.ToCoreModel());
     return(Ok());
 }