Exemplo n.º 1
0
        public async Task <IActionResult> GeCountries()
        {
            try
            {
                //ResponseViewModel ResObj = await _countryRepo.GeCountries();
                //if (ResObj.Status == false && ResObj.Messege == "Something Went Wrong !")
                //{
                //    return BadRequest(ResObj);

                //}
                //else
                //{
                //    return Ok(ResObj);
                //}

                var result = await _countryRepo.GeCountries();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(null);
            }
        }