Check out example codes for "CS0103 C# The name 'Request.Url.Scheme' does not exist in the current context". It will help you in understanding the concepts better.

Code Example 1

var _url = '@Url.Action("UploadFile", "Data", new { projectId = Model.ID }, Request.Scheme)';

Code Example 2

@page
@model MovieData
@{
    ViewData["Title"] = Model.Title;
}

Learn ReactJs, React Native from akashmittal.com