protected override bool CheckContact(string contact, out string errorMessage)
        {
            errorMessage = string.Empty;
            var shopBranch = ShopBranchApplication.GetShopBranchByContact(contact);

            if (shopBranch == null)
            {
                return(false);
            }

            var manager = ShopBranchApplication.GetShopBranchManagerByShopBranchId(shopBranch.Id);

            if (manager == null)
            {
                return(false);
            }
            ;
            Cache.Insert(_encryptKey + contact, string.Format("{0}:{1:yyyyMMddHHmmss}", manager.Id, manager.CreateDate), DateTime.Now.AddHours(1));
            return(true);
        }
        protected override bool CheckContact(string contact, out string errorMessage)
        {
            errorMessage = string.Empty;
            var shopBranch = ShopBranchApplication.GetShopBranchByContact(contact);

            if (shopBranch == null)
            {
                return(false);
            }

            var managers = ShopBranchApplication.GetShopBranchManagerByShopBranchId(shopBranch.Id);

            if (managers.Count > 0)
            {
                //TODO 固定取第一个管理员,因为一个门店只有一个管理员,如果有多个管理员,应在管理员表添加联系方式字段
                var manager = managers[0];
                Cache.Insert(_encryptKey + contact, string.Format("{0}:{1:yyyyMMddHHmmss}", manager.Id, manager.CreateDate), DateTime.Now.AddHours(1));
            }

            return(managers.Count > 0);
        }