public async Task <CountryCreateModel> UpdateCountry(CountryCreateModel data) { try { tblCountry dataCountry = await Task.Run(() => ManageCountry.UpdateCountry(data.ConvertTotblCountry())); return(dataCountry.ConvertToCountry()); } catch (Exception) { throw; } }
public async Task <CountryCreateModel> GetCountry(long Id) { try { tblCountry dataCountry = await Task.Run(() => ManageCountry.GetCountry(Id)); return(dataCountry.ConvertToCountry()); } catch (Exception) { throw; } }