diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
index 5a4a63c..1593a5d 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Entity/AIADBEntity.edmx
@@ -2615,6 +2615,18 @@ warning 6002: The table/view 'AIADatabaseV5.dbo.VocabTermNumberToSystemMap' does
+
+
+
+
+
+
+
+
+
+
+
+
@@ -6039,6 +6051,18 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]
+
+
+
+
+
+
+
+
+
+
+
+
@@ -6838,6 +6862,14 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]
+
+
+
+
+
+
+
+
@@ -9127,6 +9159,23 @@ FROM [dbo].[VocabTermNumberToSystemMap] AS [VocabTermNumberToSystemMap]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/UserModel.cs b/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/UserModel.cs
index 6f9b80f..b753b45 100644
--- a/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/UserModel.cs
+++ b/400-SOURCECODE/AIAHTML5.ADMIN.API/Models/UserModel.cs
@@ -13,6 +13,7 @@ namespace AIAHTML5.ADMIN.API.Models
public string LastName { get; set; }
public string EmailId { get; set; }
public string LoginId { get; set; }
+ public string NewLoginId { get; set; }
public string Password { get; set; }
public int SecurityQuestionId { get; set; }
public string SecurityAnswer { get; set; }
@@ -44,7 +45,6 @@ namespace AIAHTML5.ADMIN.API.Models
return false;
}
}
-
public static bool UpdateUserPassword(AIADatabaseV5Entities dbContext, int intUserID, string newPassword)
{
var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);
@@ -58,5 +58,31 @@ namespace AIAHTML5.ADMIN.API.Models
return false;
}
}
+ public static string UpdateUserId(AIADatabaseV5Entities dbContext, int id, string userId, string oldUserId)
+ {
+ var spStatus = new System.Data.Objects.ObjectParameter("Status", 0);
+ try
+ {
+ dbContext.usp_UpdateUserId(id, userId, oldUserId, spStatus);
+ if (spStatus.Value.ToString() == "1")
+ {
+ // return "success";
+ return "1";
+ }
+ else if (spStatus.Value.ToString() == "2")
+ {
+ return "2";
+ // return "Already Exist Userid";
+ }
+ else
+ {
+ return "fail";
+ }
+ }
+ catch (Exception ex)
+ {
+ return ex.Message;
+ }
+ }
}
}
\ No newline at end of file