Exemple #1
0
        public async Task <object> GetAllGroup()
        {
            _forwarderService.SetToken(GetTokenFromRequestHeader());

            var data = await _forwarderService.ForwardRequest <object, object>(Request.Path.ToString(), null, HttpMethod.Get);

            return(StatusCode((int)data.Item1, data.Item2));
        }
        public async Task <object> Update([FromBody] object requestDto)
        {
            _forwarderService.SetToken(GetTokenFromRequestHeader());

            var data = await _forwarderService.ForwardRequest <object, object>(Request.Path.ToString(), requestDto, HttpMethod.Post);

            return(StatusCode((int)data.Item1, data.Item2));
        }