示例#1
0
    public bool CheckUserNameAvailability_nonSSL(string userName, string userId)
    {
        //var repository = IoC.Resolve<IUserRepository<Customer>>();
        //long checkUserId = 0;
        //long.TryParse(userId.Trim(), out checkUserId);
        //if (checkUserId == 0)
        //    return !repository.UserNameExists(userName);
        //else
        //    return !repository.UserNameExists(checkUserId, userName);

        var otherDal = new OtherDAL();

        return(otherDal.CheckUniqueUserName(userName, Convert.ToInt64(userId)));
    }
示例#2
0
    public bool CheckUserNameAvailabilityForAdvocate_nonSSL(string userName, string userId)
    {
        OtherDAL otherDal = new OtherDAL();

        return(otherDal.CheckUniqueUserName(userName, Convert.ToInt64(userId)));
    }
    private Boolean CheckUniqueName(String strUserName)
    {
        var otherDal = new OtherDAL();

        return(otherDal.CheckUniqueUserName(strUserName, 0));
    }