コード例 #1
0
        public OrganizationDs GetAllCountryform(CounrtyDs counrtyDs)
        {
            DynamicParameters param = new DynamicParameters();

            param.Add("@CountryId", counrtyDs.Country_Id);//@CountryId
            param.Add("@CurrencyId", counrtyDs.CurrencyId);
            param.Add("@TimeZoneId", counrtyDs.TimeZoneId);

            OrganizationDs ds    = new OrganizationDs();
            string         query = @"USP_PopulateProvinceZoneCurrencyByCountry";

            using (var multi = _db.QueryMultiple(query, param))
            {
                ds.Province = multi.Read <ProvinceDs>().ToList();
                ds.Currency = multi.Read <CurrencyDs>().SingleOrDefault();
                ds.Timezone = multi.Read <TimeZoneDs>().SingleOrDefault();
            }
            return(ds);
        }
コード例 #2
0
 public OrganizationDs GetAllCountryfrom(CounrtyDs counrtyDs)
 {
     return(_orgnizationRepositroy.GetAllCountryform(counrtyDs));
 }