예제 #1
0
 public static object UpdateProfile(SessionInfo sessioninfo, MA_USER_PROFILE record)
 {
     try
     {
         ProfileBusiness _profileBusiness = new ProfileBusiness();
         record.ID = record.ID;
         record.LABEL = record.LABEL;
         record.ISACTIVE = record.ISACTIVE;
         var addedStudent = _profileBusiness.UpdateUserProfile(sessioninfo, record);
         return new { Result = "OK" };
     }
     catch (Exception ex)
     {
         return new { Result = "ERROR", Message = ex.Message };
     }
 }
예제 #2
0
 public void UpdateUserProfileTest()
 {
     ProfileBusiness target = new ProfileBusiness(); // TODO: Initialize to an appropriate value
     SessionInfo sessioninfo = null; // TODO: Initialize to an appropriate value
     MA_USER_PROFILE userprofile = null; // TODO: Initialize to an appropriate value
     MA_USER_PROFILE expected = null; // TODO: Initialize to an appropriate value
     MA_USER_PROFILE actual;
     actual = target.UpdateUserProfile(sessioninfo, userprofile);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }