public CreateModel(Asp.Net.Core.Razor.Api.Data.PersonalTaxesDBContext context)
 {
     _context      = context;
     taxCodeValues = new List <SelectListItem>()
     {
         new SelectListItem()
         {
             Value = TaxCodeTypes.FlatRate, Text = TaxCodeTypes.FlatRate
         },
         new SelectListItem()
         {
             Value = TaxCodeTypes.FlatValue, Text = TaxCodeTypes.FlatValue
         },
         new SelectListItem()
         {
             Value = TaxCodeTypes.ProgressiveA, Text = TaxCodeTypes.ProgressiveA
         },
         new SelectListItem()
         {
             Value = TaxCodeTypes.PorgressiveB, Text = TaxCodeTypes.PorgressiveB
         }
     };
 }
 // Injecting the EF Core dbcontext
 public PersonalTaxesData(PersonalTaxesDBContext context)
 {
     _personalTaxesDbContext = context;
 }
Exemple #3
0
 public DeleteModel(Asp.Net.Core.Razor.Api.Data.PersonalTaxesDBContext context)
 {
     _context = context;
 }