Beispiel #1
0
        public ResponseViewModel PermitDecline(int id)
        {
            var permit = _permitService.GetPermitBy(id);

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

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