Ejemplo n.º 1
0
 public async Task<ResponseDto> Delete(int id)
 {
     int result = await _stopService.Delete(id);
     if (result == 0)
         return new ResponseDto(ResponseCode.LogicError, "Xóa không thành công");
     if (result == -1)
         return new ResponseDto(ResponseCode.LogicError, "Không tìm thấy đối tượng cần xóa");
     return new ResponseDto(ResponseCode.Success, "Xóa thành công");
 }