Status Code: 405; Method Not Allowed
[HttpGet] public async Task<ActionResult<IEnumerable<PaymentDetailDto>>> GetAsync() { var items = (await _service.GetAllAsync()); return Ok(items); }
<pre> public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddDbContext<ApplicationDbContext>(o => o.UseMySql(Configuration.GetConnectionString("mysqlconnection"))); services.AddDiscoveryClient(Configuration); services.AddCors(c => { c.AddPolicy("AllowOrigin", options => options.AllowAnyOrigin()); });}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)