public ActionResult Choose(BatchTestViewModel model) { ResponseResult result = BatchRepo.Choose(model); return(Json(new { success = result.Success, message = result.ErrorMessage, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }