public JsonResult AddPostTest(List <PostTest> postTests, string staffId, string staffName) { if (postTests.Any(pt => string.IsNullOrEmpty(pt.sDateCompleted))) { return(Json(0)); } int iRet = DbPostTestsUtils.SaveNewPostTestsCompleted(postTests, int.Parse(staffId), staffName); return(Json(iRet)); }