Beispiel #1
0
        public ActionResult Edit(long id)
        {
            TaxesPost taxes = _taxesService.GetPost(id);

            if (taxes == null)
            {
                return(NotFound());
            }
            ViewBag.ixCountry            = new SelectList(_taxesService.selectCountries().Select(x => new { x.ixCountry, x.sCountry }), "ixCountry", "sCountry", taxes.ixCountry);
            ViewBag.ixCountrySubDivision = new SelectList(_taxesService.selectCountrySubDivisions().Select(x => new { x.ixCountrySubDivision, x.sCountrySubDivision }), "ixCountrySubDivision", "sCountrySubDivision", taxes.ixCountrySubDivision);

            return(View(taxes));
        }