Beispiel #1
0
        public ActionResult <OperationDTO> GetActiveOperationUser()
        {
            var operation = _operationsRepository.GetByUserId(UserId);

            if (operation != null)
            {
                OperationDTO opDto = new OperationDTO(operation);
                return(Ok(opDto));
            }

            return(NotFound());
        }