Exemplo n.º 1
0
        public ResponseViewModel PermitSuspend(int id)
        {
            var permit = _permitService.GetPermitBy(id);

            if (permit == null)
            {
                return(NotFound(ResponseMessageViewModel.INVALID_PERMIT, ResponseErrorCodeStatus.INVALID_PERMIT));
            }

            return(Ok(_permitService.SuspendPermit(id)));
        }