public async Task <IActionResult> Delete([FromBody] IEnumerable <string> ids) { var result = new JsonResultModel <bool>(); if (ids.AnyOne()) { result.flag = await _stationservice.DeleteAsync(ids); } return(Json(result)); }
public async Task <Result> Delete(int id) { await _stationService.DeleteAsync(id); return(Result.Success()); }