Exemplo n.º 1
0
        public IActionResult RiderDetails(int id, [FromBody] UserDto userDto)
        {
            User user = _riderService.GetRiderById(userDto.Id);

            if (user == null)
            {
                //return RedirectToAction("Proposer", "Proposers", new { policyType = "Rider" });
                return(Ok());
            }

            RiderViewModel viewModel = new RiderViewModel();

            viewModel = _riderService.PopulateRiderViewModel(user, viewModel);

            return(Ok(viewModel));
        }