public JsonResult GetSectorFinalScoreLevel1(int id = 0, string level = null) { //var graph = new Graph() //{ // OtherOrg = new int[] { 700 }, // Org = new int[] { 500 } //}; var graph = Task.Run(() => ScoreReport.OrganizationManufacturingFinalScore(GetUserIdIfIdIsEmpty(id), level)).Result; return(Json(graph, JsonRequestBehavior.AllowGet)); }
public async Task <JsonResult> GetSectorFinalScoreLevel3(int id = 0) { //var graph = new Graph() //{ // OtherOrg = new int[] { 700 }, // Org = new int[] { 500 } //}; var graph = await Task.Run(() => ScoreReport.OrganizationManufacturingFinalScore(GetUserIdIfIdIsEmpty(id), Utilities.AssessmentTypeLevel3)); return(Json(graph, JsonRequestBehavior.AllowGet)); }