Пример #1
0
        public Function()
        {
            ServiceProvider Provider = new Startup().ServiceProvider;

            CountryDomainService = Provider.GetService <ICountryDomainService>();
            StateDomainService   = Provider.GetService <IStateDomainService>();

            JsonSerializerSettings = new JsonSerializerSettings
            {
                ContractResolver = new DefaultContractResolver {
                    NamingStrategy = new CamelCaseNamingStrategy()
                },
                Formatting = Formatting.Indented
            };
        }
 public CountryController(ICountryDomainService service)
     : base(service)
 {
 }
Пример #3
0
 public CountryController(ICountryDomainService countryDomainService)
 {
     CountryDomainService = countryDomainService;
 }