示例#1
0
        public IHttpActionResult UpdateShortcut(string shortcutId, ShortcutDto shortcut)
        {
            if (string.IsNullOrEmpty(shortcutId))
            {
                throw new ArgumentNullException("shortcutId");
            }

            var updated = _shortcutService.UpdateShortcut(shortcut);

            return(Ok(updated));
        }