public Response RemoveMarker(RemoveMarkerRequest request) { try { _dal.RemoveMarker(request); RemoveMarkerResponseOk ret = new RemoveMarkerResponseOk { MarkerId = request.MarkerId }; _markerWebSocket.SendRemoveMarker(request.MarkerId); return(ret); } catch (Exception ex) { return(new AppResponseError(ex.Message)); } }
public async Task <Response> RemoveMarker(RemoveMarkerRequest request) { Response retval = new RemoveMarkerResponseInvalidID(request); if (_dal.IsMarkerExists(_conn, request.MarkerID)) { try { _dal.RemoveMarker(_conn, request.MarkerID); retval = new RemoveMarkerResponseOK(request); await _webSocket.SendRemoveMarker(request.MarkerID); } catch (Exception ex) { retval = new AppResponseError("Error in remove marker"); } } return(retval); }