Exemple #1
0
        //
        // GET: /Test/Test/

        public ActionResult Index()
        {
            ITestBLL        bll         = ServiceLocator.GetService <ITestBLL>();
            TestSearchModel searchModel = new TestSearchModel();

            var test = bll.GetModel(searchModel);

            return(View(test[0]));
        }
Exemple #2
0
 public void GetModelTest()
 {
     try
     {
         ITestBLL        bll         = ServiceLocator.GetService <ITestBLL>();
         TestSearchModel searchModel = new TestSearchModel();
         var             test        = bll.GetModel(searchModel);
         foreach (var t in test)
         {
         }
         //Assert.Fail();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }