Posts by Rian Carlos • 1 point
1 post
-
0
votes1
answer31
viewsA: Duplicate Username - Entity Framework
The ideal is for you to make a getByEmail(email) and validate if it already exists. Example: public Task<bool> CheckEmailInUse(string email, int? ignoreId) { return dbSet.Where(w => w.Email…