Questions tagged [asp.net-core-webapi]

Questions about ASP.NET Core web APIs and web apps that are not dependent on MVC Views or Razor Pages.

1
vote
0answers
15 views

ASP.Net Core Web API Basic App

I searched online for how to make a web API in ASP.Net Core 3, but only found one small tutorial. Based off that I wrote the following code but I was wondering if I missed any best practices. Are ...
1
vote
1answer
61 views

A ValueService is used to share data among objects

I have C# code that makes some calculations for physical models. I have this project class: ...
0
votes
0answers
202 views

Upsert with .Net Core Web API

I am using .NET Core 2.2, EF Core and C#. I have created a web API project. I was requested to do an Upsert (insert or update). The entities structure is: Movie User Rating: this is used to give a ...
3
votes
2answers
99 views

Streaming modified lines of a file from a Controller

I am writing a piece of software that aims at streaming the modified lines of an external file located at given uri (and retrieved as a QueryString parameter). I am trying to minimize the impact of ...
0
votes
1answer
182 views

Asynchronously fetching data from the database

The following C# code is written to fetch the Categories data from SQL Server Database using Asynchronous Task for HttpGet. The Dapper library is used as ORM. I ...