コード例 #1
0
        public ActionResult CreateOrg(string name, string code)
        {
            if (!string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(code))
            {
                var config = new OrgConfiguration
                {
                    Name = name,
                    Code = code.ToUpper(),
                };

                _repository.CreateOrg(config);
            }

            return(this.RedirectToAction("Index", "Home"));
        }
 public OrgProviderService(ILogger logger, OrgConfiguration orgConfiguration)
 {
     _logger           = logger;
     _orgConfiguration = orgConfiguration;
 }