public async Task <IHttpActionResult> GetLoginOnBehalfInfo(string storeId, string id)
        {
            var result = new webModel.LoginOnBehalfInfo
            {
                UserName = id
            };

            var user = await _securityService.FindByIdAsync(id, UserDetails.Reduced);

            if (user != null)
            {
                //TODO: Check what requested user has permission to login on behalf in concrete store
                result.CanLoginOnBehalf = _securityService.UserHasAnyPermission(user.UserName, null, StorePredefinedPermissions.LoginOnBehalf);
            }

            return(Ok(result));
        }
        public async Task<IHttpActionResult> GetLoginOnBehalfInfo(string storeId, string id)
        {
            var result = new webModel.LoginOnBehalfInfo
            {
                UserName = id
            };

            var user = await _securityService.FindByIdAsync(id, UserDetails.Reduced);

            if (user != null)
            {
                //TODO: Check what requested user has permission to login on behalf in concrete store
                result.CanLoginOnBehalf = _securityService.UserHasAnyPermission(user.UserName, null, StorePredefinedPermissions.LoginOnBehalf);
            }

            return Ok(result);
        }