public void RemoveMarkerTestInvalidMarkerID() { RemoveMarkerRequest request = new RemoveMarkerRequest() { MarkerID = "2" }; Response response = _service.RemoveMarker(request).Result; Assert.IsInstanceOf(typeof(RemoveMarkerResponseInvalidID), response); }
public void RemoveMarkerTestOK() { RemoveMarkerRequest request = new RemoveMarkerRequest() { MarkerID = "c0e16305-9eb3-4eb0-b5e2-e00bfe5a00fb" }; Response response = _service.RemoveMarker(request).Result; Assert.IsInstanceOf(typeof(RemoveMarkerResponseOK), response); }
public DataSet RemoveMarker(RemoveMarkerRequest request) { var cmd = new OracleCommand { Connection = _conn, CommandText = "RemoveMarker" }; var param1 = _infraDal.GetParameter("Id", OracleDbType.Varchar2, request.MarkerId); cmd.Parameters.Add(param1); return(_infraDal.ExecSpQuery(cmd)); }
public Response RemoveMarker(RemoveMarkerRequest request) { try { _dal.RemoveMarker(request.MarkerId); MessageRequest msg = new MessageRequest(request.UserId, request.DocId, "markersUpdated"); _wsService.Send(msg); var retval = new RemoveMarkerResponseOK(request.MarkerId); return(retval); } catch (Exception ex) { return(new ResponseError(ex.Message)); } }
public async Task <Response> RemoveMarker(RemoveMarkerRequest request) { Response response = new RemoveMarkerResponseInvalidMarkerID(request); if (_dal.isMarkerExists(request.MarkerID)) { try { _dal.RemoveMarker(request.MarkerID); response = new RemoveMarkerResponseOK(request); } catch (Exception ex) { response = new AppResponseError(ex.Message); } } return(response); }
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); }
public Response RemoveMarker(RemoveMarkerRequest request) { try { var ds = _dal.RemoveMarker(request.DocID, request.MarkerID); var tbl = ds.Tables[0]; RemoveMarkerResponse retval = new RemoveMarkerResponse(); if (tbl.Rows.Count == 0) { retval = new RemoveMarkerResponseOK(request); _messanger.Send(request.MarkerID, request.DocID, "removeMarker"); } return(retval); } catch (Exception ex) { return(new AppResponseError(ex.Message)); } }
public Response RemoveMarker([FromBody] RemoveMarkerRequest request) { return(_removeMarkerService.RemoveMarker(request)); }
public RemoveMarkerResponseOK(RemoveMarkerRequest request) { Request = request; }
public async Task <Response> RemoveMarker(RemoveMarkerRequest request) { return(await _markerService.RemoveMarker(request)); }
public Response RemoveMarker([FromBody] RemoveMarkerRequest request) { var ret = _service.RemoveMarker(request); return(ret); }