Пример #1
0
        public async Task <RegistrationInfoDto[]> GetReistrationsByBaseStationsAsync(RegistrationsByBaseStationsRequest bsRequest)
        {
            var content  = new StringContent(JsonConvert.SerializeObject(bsRequest), Encoding.UTF8, "application/json");
            var response = await _httpClient.PostAsync("api/Place/RegistrationInfoDto", content);

            var result = await ConvertResponse <RegistrationInfoDto[]>(response);

            return(result);
        }
Пример #2
0
        public IActionResult RegistrationInfoDto([FromBody] RegistrationsByBaseStationsRequest request)
        {
            return(Ok("RegistrationInfoDto"));
            //try
            //{
            //    var response = _scenario.GetRegistrationInfo(request);

            //    return Ok(response);
            //}
            //catch (NotFoundParmsException exception)
            //{
            //    return BadRequest(exception);
            //}
            //catch (Exception exception)
            //{
            //    return BadRequest(exception);
            //}
        }