예제 #1
0
        public HttpResponseMessage InsertSearch(AdvancedSearchViewModel viewModel)
        {
            viewModel.CreatedOn = DateTime.Now.ToUniversalTime();
            viewModel.CreatedBy = this.UserId;
            viewModel.AccountID = this.AccountId;
            SaveAdvancedSearchResponse response = advancedSearchService.InsertSavedSearch(
                new SaveAdvancedSearchRequest()
            {
                AdvancedSearchViewModel = viewModel,
                AccountId   = this.AccountId,
                RequestedBy = this.UserId,
                RoleId      = this.RoleId
            });

            return(Request.BuildResponse(response));
        }