Ejemplo n.º 1
0
        public async Task <IActionResult> AddWorkOrderNote(WorkOrderNote workOrderNote)
        {
            var result = await _workOrderRepository.AddWorkOrderNote(workOrderNote);

            if (result == HttpStatusCode.Created)
            {
                return(StatusCode(201));
            }

            return(StatusCode(StatusCodes.Status500InternalServerError));
        }