Example #1
0
        public void SystemGetTest()
        {
            Guid userId   = new Guid("1538694e-12f2-e111-a89d-00155d02e702");
            Guid groupSid = new Guid("aeab580d-df16-42d5-9714-e4e581fc8134");

            var actual = SystemBusiness.Get(userId, "IntranetSME");

            Assert.IsTrue(actual.Count() > 0);
        }
Example #2
0
        public HttpResponseMessage Get()
        {
            try
            {
                string temaCoreSSO = ConfigurationManager.AppSettings["TemaCoreSSO"];

                var result = SystemBusiness.Get(claimData.UserId, temaCoreSSO);
                return(Request.CreateResponse(HttpStatusCode.OK, result));
            }
            catch (Exception exc)
            {
                var logId = LogBusiness.Error(exc);
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, new ErrorModel(logId)));
            }
        }