public void QueueAuthorizationRequest(string operationType, int userId, List <Guid> resourcesGuids)
        {
            RequestManagement rm = new RequestManagement();
            Priviledge        pr = new Priviledge();

            pr.Load(operationType);
            rm.AddRequest(pr.priviledgeId, 2, resourcesGuids);
        }
        public IHttpActionResult Put(Request request)
        {
            var requestManager = new RequestManagement();

            requestManager.Update(request);
            apiResponse = new ApiResponse();
            return(Ok(apiResponse));
        }
        public IHttpActionResult Post2(Request request)
        {
            var            requestManager = new RequestManagement();
            List <Request> id             = requestManager.RetrieveIdByHotel(request);

            apiResponse      = new ApiResponse();
            apiResponse.Data = id;
            return(Ok(apiResponse));
        }
        public IHttpActionResult Get()
        {
            var requestManager = new RequestManagement();

            apiResponse = new ApiResponse();
            var requests = requestManager.RetrieveAll();

            apiResponse.Data = requests;
            return(Ok(apiResponse));
        }