**Microsoft.Data.SqlClient.SqlException **(0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) System.ComponentModel.Win32Exception (0x80090325): The certificate chain was issued by an authority that is not trusted. at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
using WebApplication2.Data;
using WebApplication2.Model.Domain;
namespace WebApplication2.Repositories
{
public class RegionRepository : IRegionRepository
{
private readonly WalksDbContext walksDbContext;
public RegionRepository(WalksDbContext walksDbContext)
{
this.walksDbContext = walksDbContext;
}
public IEnumerable<Region> GetAll()
{
return walksDbContext.Regions.ToList();
}
}
}