Beispiel #1
0
        public async Task <IActionResult> IndexAsync()
        {
            await _hubContext.Clients.All.SendAsync("NewEnquiryArrived", $"Home page loaded at: {DateTime.Now}", "nvnvfd");

            await _myService.Get();

            return(View());
        }
Beispiel #2
0
 public IActionResult Get()
 {
     return(new ObjectResult(_myService.Get()));
 }
Beispiel #3
0
 public int Get()
 {
     return(_service.Get());
 }