Beispiel #1
0
        public ActionResult Add(Epm_ConstituteCompany model)
        {
            ConstituteCompanyView cv   = new ConstituteCompanyView();
            ResultView <int>      view = new ResultView <int>();

            string ISPValue = Request.Form["ISPValue"];

            cv.ConstituteCompanyDetails = JsonConvert.DeserializeObject <List <Epm_ConstituteCompanyDetails> >(ISPValue);
            Result <int> result = new Result <int>();

            using (BusinessClientProxy proxy = new BusinessClientProxy(ProxyEx(Request)))
            {
                cv.ConstituteCompany = model;
                result = proxy.AddConstituteCompany(cv);
            }
            return(Json(result.ToResultView()));
        }
 ///<summary>
 ///修改:
 ///</summary>
 /// <param name="model">要修改的model</param>
 /// <returns>受影响的行数</returns>
 public Result <int> UpdateConstituteCompany(ConstituteCompanyView view)
 {
     return(base.Channel.UpdateConstituteCompany(view));
 }