Ejemplo n.º 1
0
        public void RemoveMarkerTestOK()
        {
            RemoveMarkerRequest request = new RemoveMarkerRequest()
            {
                MarkerID = "c0e16305-9eb3-4eb0-b5e2-e00bfe5a00fb"
            };
            Response response = _service.RemoveMarker(request).Result;

            Assert.IsInstanceOf(typeof(RemoveMarkerResponseOK), response);
        }
Ejemplo n.º 2
0
        public IActionResult MapMarkerRemove([FromBody] int markerId)
        {
            try
            {
                markerService.RemoveMarker(markerId);

                return(Json(new
                {
                    success = true
                }));
            }
            catch (Exception ex)
            {
                return(Json(new
                {
                    success = false,
                    message = ex.Message
                }));
            }
        }
 public Response RemoveMarker([FromBody] MarkerRequest markerRequest)
 {
     return(MarkerService.RemoveMarker(markerRequest));
 }
 public async Task <Response> RemoveMarker(RemoveMarkerRequest request)
 {
     return(await _markerService.RemoveMarker(request));
 }