public ActionResult GetUsersInRole(int roleId, int pageSize, int pageNumber)
        {
            var request = new GetUsersInRoleRequest { RoleId = roleId, Skip = (pageNumber - 1) * pageSize, Take = pageSize };
            var response = this.membershipService.GetUsersInRole(request);
            var result = new { Users = response.Users.ConvertToUsersInRoleViewModel(), response.TotalCount };

            var jsonNetResult = new JsonNetResult
            {
                Formatting = (Formatting)Newtonsoft.Json.Formatting.Indented,
                Data = result
            };

            return jsonNetResult;
        }
        /// <summary>
        /// The get users in role.
        /// </summary>
        /// <param name="request">
        /// The request.
        /// </param>
        /// <returns>
        /// The <see cref="GetUsersInRoleResponse"/>.
        /// </returns>
        public GetUsersInRoleResponse GetUsersInRole(GetUsersInRoleRequest request)
        {
            Tuple<List<User>, int> tuple =
                request.RoleId.Equals(-1) ? this.userRepository.GetAllUsers(request.Skip, request.Take) : this.userRepository.GetUsersInRole(request.RoleId, request.Skip, request.Take);

            var result = new GetUsersInRoleResponse { Users = tuple.Item1.ConvertToGetUsersInRoleResponseCollection(), TotalCount = tuple.Item2 };
            return result;
        }