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 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)); }