public HttpResponseMessage CpGetPermissionsAgainstRole(string screenName)
        {
            try
            {
                int userRole = 0;
                int userid   = Convert.ToInt32(User.Identity.GetUserId());

                ApplicationUser user = UserManager.FindById(userid);

                foreach (ApplicationUserRole role in user.Roles)
                {
                    userRole = role.RoleId;
                    break;
                }

                var result = _accountServices.CpGetPermissionsAgainstRole(userRole, screenName);

                if (result != null)
                {
                    return(Request.CreateResponse(HttpStatusCode.OK, result));
                }
                else
                {
                    return(Request.CreateResponse(HttpStatusCode.NoContent, "0"));
                }
            }
            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }