public ActionResult CreatePart(ClassViewModel model) { ResponResultViewModel result = BatchRepo.AddParticipant(model); return(Json(new { success = result.Success, message = result.Message, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }