示例#1
0
        /// <summary>
        /// Add a new user
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public async Task AddUser(UserModel model)
        {
            model.Password = HashHelper.HashPassword(model.Password);
            await _subscriptionRepository.AddUser(model);

            //Send email
            await SendEmailOnSignup(model);
        }