Esempio n. 1
0
        /// <summary>
        /// Email Id Exists or not
        /// </summary>
        /// <param name="emailId"></param>
        /// <returns></returns>
        public async Task <bool> IsUserEmailExist(string emailId)
        {
            var isEmailExist = await _userRepository.AnyAsync(x => !x.IsDeleted && !string.IsNullOrEmpty(emailId) && x.Email.ToLower() == emailId.ToLower());

            return(isEmailExist);
        }