public async Task <Assignedtest> CheckResult(VmQuestions vmQuestions) { var content = Utilities.GetRequestContent(vmQuestions); HttpResponseMessage response = await _httpClient.PostAsync($"Admin/CheckResult", content); var assignedtest = await Utilities.GetResponseContent <Assignedtest>(response); return(assignedtest); }
public async Task <IActionResult> Test(VmQuestions vmQuestions) { vmQuestions.CustId = Session.CustId; var result = await _apiHandler.CheckResult(vmQuestions); if (result != null) { return(View("Result", result)); } return(View()); }