what is the best way to get multiple resultsets to my api using linq or EF
as i have around 25 diffrent resultset
but i only get out the first resultset to swagger using
[HttpGet]
[Route("tire-tabel")]
public List<DeviationCalculation_Result> TireTabel(decimal presentWidth, decimal presentAspectRatio, string presentRimSize, int maxDeviation)
{
using (var context = new OminiTireEntities())
{
String sql =
"SET NOCOUNT ON; " +
"EXEC [Tabel].[DeviationCalculation] " +
"@PresentWidth= '" + presentWidth + "', " +
"@PresentAspectRatio= '" + presentAspectRatio + "', " +
"@PresentInches= '" + presentRimSize + "', " +
"@MaxDeviation= '" + maxDeviation + "' ";
List<SqlParameter> sqlParams = new List<SqlParameter>();
sqlParams.Add(new SqlParameter("PresentWidth", (object) presentWidth ?? DBNull.Value));
sqlParams.Add(new SqlParameter("PresentAspectRatio", (object)presentAspectRatio ?? DBNull.Value));
sqlParams.Add(new SqlParameter("PresentInches", (object)presentRimSize ?? DBNull.Value));
sqlParams.Add(new SqlParameter("MaxDeviation", (object)maxDeviation ?? DBNull.Value));
var result = context.Database.SqlQuery<DeviationCalculation_Result>(sql).ToList<DeviationCalculation_Result>();
return result;
}
}