public async Task <IActionResult> IndexAsync() { await _hubContext.Clients.All.SendAsync("NewEnquiryArrived", $"Home page loaded at: {DateTime.Now}", "nvnvfd"); await _myService.Get(); return(View()); }
public IActionResult Get() { return(new ObjectResult(_myService.Get())); }
public int Get() { return(_service.Get()); }