/// <summary>
        /// Gets the user role actions.
        /// </summary>
        /// <param name="username">The username.</param>
        /// <returns></returns>
        /// <exception cref="ApplicationException">Repository GetUserRoleIdCollection</exception>
        public IList <IUserRolesModel> GetUserRoleActions(string username)
        {
            try
            {
                using (
                    var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext())
                {
                    var list = AccountQueries.GetUserRoleActionCollection(dbContext, username).ToList();

                    return(list);
                }
            }
            catch (Exception e)
            {
                throw new ApplicationException("Repository GetUserRoleIdCollection", e);
            }
        }