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

how to write html tags in a c# string

I want to include the following HTML code in my C# code: <span style="color: red; font-weight: bold;">Authorized.</span> However, when I include it in my C# code as is, it's getting transformed into the following: &lt;span style="color: red; font-weight: bold;"&gt;Authorized.&lt;/span&gt; When…

VIEW QUESTION
Back To Top
Search