Exemplo n.º 1
0
        public JsonResult DeleteTestDetails(long Id)
        {
            AthleteTestBL objAthleteTest = new AthleteTestBL(_context, _httpContextAccessor);
            bool          Status         = objAthleteTest.DeleteTestDetails(Id);

            return(Json(Status));
        }
Exemplo n.º 2
0
        public JsonResult SaveTest(AthleteTestMasterModel objTest)
        {
            AthleteTestBL athleteTestBL = new AthleteTestBL(_context, _httpContextAccessor);
            bool          Status        = athleteTestBL.SaveTestDetials(objTest);

            return(Json(Status));
        }
Exemplo n.º 3
0
        public IActionResult Index()
        {
            AthleteTestBL            objAthleteTest = new AthleteTestBL(_context, _httpContextAccessor);
            List <TestListViewModel> lstTests       = objAthleteTest.GetAllAthleteTest();

            return(View(lstTests));
        }
Exemplo n.º 4
0
        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));
        }