Esempio n. 1
0
        //
        // GET: /Collection/

        //public ActionResult Index()
        //{
        //    return View();
        //}
        public ActionResult Details(string id)
        {
            var model     = collectionSer.Find(id);
            var viewModel = new CollectionView();

            viewModel.CopyFrom(model);
            return(View(viewModel));
        }
Esempio n. 2
0
        //修改采样位置
        public ActionResult EditCollection(string id)
        {
            var model = new CollectionView();
            var m     = collectionSer.FirstOrDefault(x => x.C_ID == id);

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