Exemplo n.º 1
0
        public ActionResult ContractorEdit(Base_Company model)
        {
            Result <int>      result       = new Result <int>();
            List <Base_Files> fileListFile = new List <Base_Files>();

            model.Type = "SSCBS";
            string fileDataJson = Request.Form["fileDataJsonFile"];//获取上传文件json字符串

            if (!string.IsNullOrEmpty(fileDataJson))
            {
                model.baseFiles = JsonConvert.DeserializeObject <List <Base_Files> >(fileDataJson);//将文件信息json字符
            }
            using (ClientSiteClientProxy proxy = new ClientSiteClientProxy(ProxyEx(Request)))
            {
                result = proxy.AddCompany(model);
            }
            return(Json(result.ToResultView()));
        }