public async Task <IActionResult> UpdateAsync([FromBody] ApiUpdateLineDto apiUpdateLineDto) { var isLine = await _orderLineService.AnyAsync(i => i.Id == apiUpdateLineDto.Id); if (apiUpdateLineDto is null || apiUpdateLineDto.Id <= 0 || apiUpdateLineDto.OrderHeaderId <= 0 || !isLine.Data) { return(BadRequest(JsonSerializer.Serialize(new ErrorModel { Message = "Hatali veri girisi!" }))); }