skip to Main Content

Asp.net – After saving the data to the database once, it does not save the second one

I'm pretty new to this industry. This is the Create method in BaseRepository: public async Task CreateAsync(TEntity entity) { await _db.Set<TEntity>().AddAsync(entity); await _db.SaveChangesAsync(); } This is the Create method inside the UserService class. public ResultService<UserCreateDTO> Create(UserCreateVM userCreateVM) { ResultService<UserCreateDTO> result…

VIEW QUESTION
Back To Top
Search