skip to Main Content

Showing image from different project ASP.NET

HTML <h3>Single Upload</h3> <form method="post" enctype="multipart/form-data"> File <input type="file" name="file" /> <br /> <input type="button" value="Upload" onclick="return SaveExit()" /> </form> <img src="C:/Users/Gigabyte/source/repos/ReimbursementSystem/ReimbursementSystemAPI/wwwroot/Images/biomimikrifix1.png" width="100" height="200" alt="3" /> I want to simply show the image from the other project with the path…

VIEW QUESTION

Unable to resolve service DbContext while attempting to activate controller – Asp.net

I have my own DbContext: public class DreamsContext : DbContext { public DbSet<UserAccount> UserAccounts { get; set; } public DbSet<DreamPublication> DreamPublications { get; set; } public DreamsContext(DbContextOptions<DreamsContext> options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<UserAccount>().ToTable("dreams_user"); modelBuilder.Entity<DreamPublication>().ToTable("dream_publications");…

VIEW QUESTION
Back To Top
Search