public AjaxResult SetMemberSearchName(string memberSearchIdStr, string newName)
        {
            if (string.IsNullOrEmpty(memberSearchIdStr))
            {
                throw new ArgumentException("The member search ID must be specified.", "memberSearchIdStr");
            }

            try
            {
                EnsureEmployerLoggedIn();

                var memberSearch = _memberSearchesQuery.GetMemberSearch(new Guid(memberSearchIdStr));
                memberSearch.Name = newName;
                _memberSearchesCommand.UpdateMemberSearch(LoggedInEmployer, memberSearch);
                return(new AjaxResult(AjaxResultCode.SUCCESS));
            }
            catch (Exception ex)
            {
                return(HandleException(ex));
            }
        }
Beispiel #2
0
        void IMemberSearchAlertsCommand.UpdateMemberSearch(IUser owner, MemberSearch search)
        {
            // Update the search.

            _memberSearchesCommand.UpdateMemberSearch(owner, search);
        }