Posts

Showing posts from November, 2017

Repository Pattern Async Await

Image
https://www.youtube.com/watch?v=gfkuD_eWM5Y https://www.youtube.com/watch?v=C5VhaxQWcpE Async and Await are the two keywords that help us to program asynchronously. An async keyword is a method that performs asynchronous tasks such as fetching data from a database, reading a file, etc, they can be marked as “async”. Whereas await keyword making  “await” to a statement means suspending the execution of the async method it is residing in until the asynchronous task completes. After suspension, the control goes back to the caller method. Once the task completes, the control comes back to the states where await is mentioned and executes the remaining statements in the enclosing method. --------------------------------------------- http://www.c-sharpcorner.com/UploadFile/8a67c0/Asp-Net-mvc-code-first-approach-with-repository-pattern/ http://www.c-sharpcorner.com/UploadFile/3d39b4/crud-using-the-repository-pattern-in-mvc/ http://freefrontend.com/html-bootstrap-ui-kits/ Async

Download Manager

The 15 Best Freelance Websites https://www.entrepreneur.com/article/245953 Download Video from Plural Site http://download.cnet.com/Internet-Download-Manager/3000-2071_4-10071618.html   [Route("api/WorkFlowTask")]        public class WorkFlowTaskController : Controller     {         [HttpGet("GetQualifyingQuestions/{workflowVariantName}")] //http://localhost:61031/api/WorkFlowTask/GetQualifyingQuestions/soloklite                    public async Task GetQualifyingQuestions(string workflowVariantName)         {             using (var client = new HttpClient())             {                 try                 {                     client.DefaultRequestHeaders.Accept.Clear();                     client.BaseAddress = new Uri("http://localhost:49403");                     var response = await client.GetAsync($"api/workflowtask/GetQualifyingQuestions/" + workflowVariantName);                     response.EnsureSuccessStatusC