public IHttpActionResult Update(MenuLinkList list) { CheckCurrentUserHasPermissionForObjects(ContentPredefinedPermissions.Update, new ContentScopeObject { StoreId = list.StoreId }); _menuService.AddOrUpdate(list.ToCoreModel()); return(Ok()); }
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)); }
public IHttpActionResult Update(string storeId, MenuLinkList list) { _menuService.UpdateList(list.ToCoreModel()); return(Ok()); }