public async Task <JsonResult> QTGet()
 {
     try {
         var oid  = Guid.Parse(Request.Form["id"]);
         var aid  = Guid.Parse(Request.Form["aid"]);
         var data = QuizTakerService.GetByUserID(oid, aid);
         var vms  = QuizTakerService.SetSubDatas(data, aid);
         vms = QuizTakerService.SortByDate(vms, false);
         return(Success(vms));
     } catch { return(Failed(MessageUtilityService.ServerError())); }
 }
 public async Task <JsonResult> QIGetByTakers()
 {
     try {
         var uid    = Guid.Parse(Request.Form["id"]);
         var aid    = Guid.Parse(Request.Form["aid"]);
         var data   = QuizTakerService.GetByUserID(uid, aid);
         var vms    = QuizTakerService.SetSubDatas(data, aid);
         var vmList = new List <QuizInfoVM>();
         foreach (var vm in vms)
         {
             vmList.Add(vm.QuizInfo);
         }
         return(Success(vmList));
     } catch { return(Failed(MessageUtilityService.ServerError())); }
 }