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))); }
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)); }