public async Task <IActionResult> CreateWorkOrder(WorkOrderForCreateDto workOrderForCreate) { var result = await _workOrderRepository.CreateWorkOrder(workOrderForCreate); return(CreatedAtRoute("GetById", new { id = result.Id }, result)); }