예제 #1
0
        public ActionResult UserTestCert(int id, string name)
        {
            var userTest = UserTestService.GetByPK(id);
            var isEng    = true;

            var certName = EntityUtils.GetTestCertName(isEng, userTest);
            var user     = userTest.User;
            var userName = name ?? (isEng
                                ? user.EngFullName ?? Linguistics.Translite(user.LastName + " " + user.FirstName, true)
                                : user.FullName);

            return(View((string)"TestCert", (object)Tuple.New(userName, certName, userTest)));
        }
예제 #2
0
        public ActionResult TestCert(decimal id, bool?eng)
        {
            var orderDetail = OrderDetailService.GetByPK(id);
            var userTest    = orderDetail.UserTest;
            var isEng       = orderDetail.Params.Lang == TestCertLang.Eng;

            if (eng.HasValue)
            {
                isEng = eng.Value;
            }


            var certName = EntityUtils.GetTestCertName(isEng, userTest);
            var user     = orderDetail.Order.User;
            var userName = isEng ? user.EngFullName : user.FullName;

            return(View(Tuple.New(userName, certName, userTest)));
        }