public IActionResult AddMarker([FromBody] Marker marker) { var mappedMarker = LocalMapper.Map <Business.Models.Marker.Marker>(marker); var response = _markerService.AddMarker(mappedMarker, Requestor.User.Id); return(response.GetActionResult <Business.Models.Marker.Marker, Marker>(this)); }
public async Task <bool> Post([FromBody] MarkerDto marker) { return(await _markerService.AddMarker(marker)); }