public ActionResult GetUsersForView(string viewId)
        {
            GenericAjaxResponse <List <Web.ViewModel.TableauViewUserAssociation> > webResponse = new GenericAjaxResponse <List <Web.ViewModel.TableauViewUserAssociation> >();

            try
            {
                if (string.IsNullOrEmpty(viewId))
                {
                    webResponse.Errors.Add("View id provided is empty");
                    webResponse.Success = false;
                    return(Json(webResponse));
                }
                GenericAjaxResponse <List <Core.DTO.TableauViewUserAssociation> > apiResponse = _restClient.ListViewAssociations(viewId);
                webResponse.Errors  = apiResponse.Errors;
                webResponse.Success = apiResponse.Success;
                if (apiResponse.Data != null)
                {
                    webResponse.Data = apiResponse.Data.Select(view => new Web.ViewModel.TableauViewUserAssociation()
                    {
                        Selected = view.Selected,
                        Username = view.Username,
                        UserType = view.UserType,
                        ViewId   = view.ViewId
                    }).ToList();
                }
            }
            catch (Exception ex)
            {
                webResponse.Success = false;
                webResponse.Errors.Add("Could not process the request.");
                _logger.Error("Error occurred getting list of all users for view", ex);
            }
            return(Json(webResponse));
        }