Exemple #1
0
        //To get roles
        public IHttpActionResult GetUsersWorkspaces(string emailID)
        {
            try
            {
                DashboardData approvedWorkspacesData = new DashboardData();
                var           approvedWorkspaces     = approvedWorkspacesData.GetUsersWorkspaces(emailID);

                return(Ok(approvedWorkspaces));
            }
            catch (Exception ex)
            {
                return(BadRequest("Could not fetch users approved workspaces"));
            }
        }