예제 #1
0
        public static object GetProfileOptions(SessionInfo sessioninfo)
        {
            try
            {
                ProfileBusiness _profileBusiness = new ProfileBusiness();
                //Get data from database
                var profiles = _profileBusiness.GetProfileOptions().Select(c => new { DisplayText = c.LABEL, Value = c.ID });

                //Return result to jTable
                return new { Result = "OK", Options = profiles };
            }
            catch (Exception ex)
            {
                return new { Result = "ERROR", Message = ex.Message };
            }
        }
예제 #2
0
 public void GetProfileOptionsTest()
 {
     ProfileBusiness target = new ProfileBusiness(); // TODO: Initialize to an appropriate value
     List<MA_USER_PROFILE> expected = null; // TODO: Initialize to an appropriate value
     List<MA_USER_PROFILE> actual;
     actual = target.GetProfileOptions();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }