Exemplo n.º 1
0
        public async Task <IActionResult> AssignToLoggedInUser(WorkOrderAssignDto workOrder)
        {
            var result = await _workOrderRepository.AssignToLoggedInUser(workOrder);

            if (result == HttpStatusCode.NoContent)
            {
                return(StatusCode(StatusCodes.Status204NoContent));
            }

            return(StatusCode(StatusCodes.Status500InternalServerError));
        }