Beispiel #1
0
        public async Task <CountryCreateModel> UpdateCountry(CountryCreateModel data)
        {
            try
            {
                tblCountry dataCountry = await Task.Run(() => ManageCountry.UpdateCountry(data.ConvertTotblCountry()));

                return(dataCountry.ConvertToCountry());
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #2
0
        public async Task <CountryCreateModel> GetCountry(long Id)
        {
            try
            {
                tblCountry dataCountry = await Task.Run(() => ManageCountry.GetCountry(Id));

                return(dataCountry.ConvertToCountry());
            }
            catch (Exception)
            {
                throw;
            }
        }