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

            return(Content($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.ffff")}"));
        }
示例#2
0
 public Task <IActionResult> GetValue(string id)
 {
     return(Task.Factory.StartNew <IActionResult>(() =>
     {
         _service.Call("123");
         return Success();
     }));
 }
示例#3
0
 public IActionResult Index()
 {
     _service.Call(new List <A> {
         new A()
     }, "b", 2);
     _service.Call2();
     return(View());
 }
示例#4
0
        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());
            }));
        }
示例#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");
 }
示例#8
0
 public IEnumerable <string> Get()
 {
     _service.Call();
     return(new string[] { "value1", "value2" });
 }
示例#9
0
 public void Test()
 {
     _service.Call();
 }