public async Task <ActionResult> EditCountryModal(Guid countryId)
        {
            var output = await _countryAppService.GetById(countryId);

            var model = new EditCountryModalViewModel(output);

            return(View("EditCountryModal", model));
        }
Example #2
0
        public IActionResult Get(int id)
        {
            try
            {
                var ViewModel = _appService.GetById(id);

                return(Ok(ViewModel));
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }