public async Task <IActionResult> DeleteAsync(int id) { var result = await _pointService.DeleteAsync(id); if (!result.Success) { return(BadRequest(result.Message)); } var pointResource = _mapper.Map <Point, PointResource> (result.Point); return(Ok(pointResource)); }
public async Task <IActionResult> Delete(int id) { await _pointService.DeleteAsync(id); return(NoContent()); }