diff --git a/400-SOURCECODE/AIAHTML5.API/Controllers/LabExercises.cs b/400-SOURCECODE/AIAHTML5.API/Controllers/LabExercises.cs
deleted file mode 100644
index a8551dc..0000000
--- a/400-SOURCECODE/AIAHTML5.API/Controllers/LabExercises.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System;
-using System.Threading.Tasks;
-using MongoDB.Bson;
-using MongoDB.Driver;
-using AIAHTML5.API.Properties;
-using MongoDB.Driver.Builders;
-
-namespace AIAHTML5.API.Models
-{
- public class LabExercises
- {
- public int Attemptnumber { get; set; }
- public string labExerciseCode { get; set; }
- public string Answer { get; set; }
- public int Question { get; set; }
- public int Score { get; set; }
-
-
- public void UpdateUserLabExercise(Users objUser)
- {
- var client = new MongoClient();
- var db = client.GetDatabase(Settings.Default.database);
-
- var collection = db.GetCollection("Users");
-
- collection.UpdateOne(
- Builders.Filter.Eq("loginId", objUser.loginId),
- Builders.Update.Set("LabExerciseAttempt", objUser.labExerciseAttempt));
-
-
- }
- }
-}
\ No newline at end of file
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
index ecfb0dd..cd853bc 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -399,12 +399,18 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location
LabExerciseService.saveLabExerciseAttempt($scope.labExerciseAttempt)
.then(
function (result) {
- alert("Successfully updated");
+ //saved successfully.
+ $rootScope.errorMessage = result;
+ $("#messageModal").modal('show');
},
- function (error) {
- console.log(' Error in authentication = ' + error.statusText);
- alert("Error");
- });
+ function (error) {
+ console.log(' Error in saving lab exercise = ' + error.statusText);
+ // alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS);
+ $rootScope.isVisibleLogin = true;
+ $rootScope.errorMessage = error;
+ $("#messageModal").modal('show');
+ }
+ )
};