I\'m using Ado to retrieve a single record by id. Observe:
public async Task GetImage(int id) { var image = new Image(); using (SqlConnecti
You can use Top(1) in this case in your query to get only single record from database:
SELECT Top(1) * FROM Images where id = @id order by id desc -- will get the latest record