Beispiel #1
0
        public IActionResult Index()
        {
            customService.Call();
            testService.Call();

            return(Content($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.ffff")}"));
        }
Beispiel #2
0
 public Task <IActionResult> GetValue(string id)
 {
     return(Task.Factory.StartNew <IActionResult>(() =>
     {
         _service.Call("123");
         return Success();
     }));
 }
Beispiel #3
0
 public IActionResult Index()
 {
     _service.Call(new List <A> {
         new A()
     }, "b", 2);
     _service.Call2();
     return(View());
 }
        public IActionResult Index()
        {
            _service.Call();



            return(View());
        }
        public Task <IActionResult> GetValue(string id)
        {
            return(Task.Factory.StartNew <IActionResult>(() =>
            {
                _service.Call("123");

                // _testRepository.Delete<PbdmOrgan, string>("");
                var a = _testRepository.Get <PbdmOrgan>().FirstOrDefault(x => x.Id == "1");
                DataTable dataTable = _testRepository.GetDataTableWithSql("SELECT * FROM dbo.PBDM_ORGAN");
                return Success(dataTable.ToJson());
            }));
        }
Beispiel #6
0
        public JsonResult GetAopData()
        {
            SysUser user = new SysUser()
            {
                UserName = "******", UserCode = "编码"
            };

            _lgnoreService.GetA(user);
            _lgnoreService.GetB();
            _lgnoreService.GetC();

            _service.Call();
            //_service.Say();

            return(new JsonResult(true));
        }
 public ActionResult <string> Get(int id)
 {
     _service.Call();
     return("value");
 }
 public IEnumerable <string> Get()
 {
     _service.Call();
     return(new string[] { "value1", "value2" });
 }
Beispiel #9
0
 public void Test()
 {
     _service.Call();
 }