Example #1
0
        //constructor, single locale only
        public BaseResService()
        {
            _br = new BaseResDto(); //initial value
            var file = _Fun.DirRoot + "wwwroot/locale/" + _Fun.Config.DefaultLocale + "/BR.json";

            if (!File.Exists(file))
            {
                _Log.Error("no file: " + file);
                return;
            }

            //set _baseR
            var json = _Json.StrToJson(_File.ToStr(file));

            _Json.CopyToModel(json, _br);
        }
Example #2
0
 public ActionResult Edit(
     IBaseResService baseInfoService)
 {
     _baseInfo = baseInfoService.GetData();
     return(View());
 }