public async Task GoOnline(LocationDto locationDto) { string connectionId = Context.ConnectionId; locationDto.ConnectionId = connectionId; var location = _LocationService.UpdateDeliveryLocation(locationDto); _delivererService.UpdateDeliveryStatus(locationDto.DelivererId, "online"); await Clients.Client(connectionId).SendAsync("ReceiveMessage", "you are online"); }
public IActionResult UpdateDeliveryStatus(int id, string status) { _delivererService.UpdateDeliveryStatus(id, status); return(Ok()); }