Esempio n. 1
0
        public Response RemoveMarker(MarkerKeysRequest request)
        {
            Response retval;

            try
            {
                _dal.RemoveMarker(request);
                retval = new RemoveMarkerResponseOk("Marker was deleted!");
            }
            catch (Exception ex)
            {
                retval = new RemoveMarkerResponseErr("can't delete now\n" + ex.Message);
            }
            return(retval);
        }
        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));
            }
        }