예제 #1
0
        //修改地球化学信息
        public ActionResult EditGeochemical(string id)
        {
            var model = new GeochemicalView();
            var m     = geochemicalSer.FirstOrDefault(x => x.G_ID == id);

            model.CopyFrom(m);
            return(View(model));
        }
예제 #2
0
        //
        // GET: /Geochemical/
        public ActionResult Details(string id)
        {
            var model     = geochemicalSer.Find(id);
            var viewModel = new GeochemicalView();

            viewModel.CopyFrom(model);
            return(View(viewModel));
        }