public bool AddNewCustomerAccount(CustomerAccount model) { string encryptedPassword = BCryptHelper.HashPassword(model.Password, BCryptHelper.GenerateSalt(6)); model.Password = encryptedPassword; return(Repository.AddNewCustomerAccount(model)); }