public async Task <IActionResult> UpdateTestStudentResult([FromBody] TestStudentResultModel testStudentResultModel)
        {
            try
            {
                testStudentResultModel.ModifiedBy   = "Admin";
                testStudentResultModel.ModifiedDate = DateTime.Now;

                db.Entry(testStudentResultModel).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
                db.SaveChanges();
                return(Ok(testStudentResultModel));
            }
            catch (Exception ex)
            {
                return(BadRequest());
            }
        }
 public async Task <IActionResult> CreateTestStudentResult([FromBody] TestStudentResultModel testStudentResultModel)
 {
     try
     {
         //bannerMaster.EnquiryID = 0;
         testStudentResultModel.CreatedBy    = "Admin";
         testStudentResultModel.CreatedDate  = DateTime.Now;
         testStudentResultModel.ModifiedBy   = "Admin";
         testStudentResultModel.ModifiedDate = DateTime.Now;
         testStudentResultModel.Active       = true;
         db.testStudentResult.Add(testStudentResultModel);
         db.SaveChanges();
         return(Ok(testStudentResultModel));
     }
     catch (Exception ex)
     {
         return(BadRequest());
     }
 }