public async Task <IActionResult> GetAllByUser(int userId) { var result = await _workOrderRepository.GetAllByUser(userId); return(Ok(result)); }