示例#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
            };
        }
示例#2
0
 public StateController(IStateDomainService service)
     : base(service)
 {
 }
示例#3
0
 public StateController(IStateDomainService stateDomainService)
 {
     StateDomainService = stateDomainService;
 }