how to retrieve httpget net core 3.1 api using stored procedure
i got error
ArgumentException: An item with the same key has already been added. Key: Bank
[HttpGet]
[Route("api/Talent/GetTalents")]
public async Task<IEnumerable<GetTalent>> GetTalents()
{
var Id = new SqlParameter("@Id", "");
return await db.GetTalents.FromSqlRaw("EXEC sp_Tbl_Mst_TalentSelect @Id", Id).ToListAsync();
}