public JsonResult DeleteTestDetails(long Id) { AthleteTestBL objAthleteTest = new AthleteTestBL(_context, _httpContextAccessor); bool Status = objAthleteTest.DeleteTestDetails(Id); return(Json(Status)); }
public JsonResult SaveTest(AthleteTestMasterModel objTest) { AthleteTestBL athleteTestBL = new AthleteTestBL(_context, _httpContextAccessor); bool Status = athleteTestBL.SaveTestDetials(objTest); return(Json(Status)); }
public IActionResult Index() { AthleteTestBL objAthleteTest = new AthleteTestBL(_context, _httpContextAccessor); List <TestListViewModel> lstTests = objAthleteTest.GetAllAthleteTest(); return(View(lstTests)); }
public PartialViewResult _AddEditTest(long Id) { AthleteTestBL athleteTestBL = new AthleteTestBL(_context, _httpContextAccessor); AthleteTestMasterModel athleteTestMasterModel = athleteTestBL.GetTestDetails(Id); AthleteTestTypesBL objTestType = new AthleteTestTypesBL(_context, _httpContextAccessor); List <TestTypeModel> lstTestTypess = objTestType.GetAllAthleteTestType(); if (athleteTestMasterModel != null) { ViewBag.lstTestType = new SelectList(lstTestTypess, "Id", "TestType", athleteTestMasterModel.TestTypeId); } else { athleteTestMasterModel = new AthleteTestMasterModel(); ViewBag.lstTestType = new SelectList(lstTestTypess, "Id", "TestType"); } return(PartialView(athleteTestMasterModel)); }