public ActionResult Create(FormCollection coolection)
        {
            var model = new DeviceUseRecordModel();

            model.UserTime = DateTime.Now;
            this.TryUpdateModel <DeviceUseRecordModel>(model);
            this.IDKLManagerService.InsertUserRecord(model);
            return(this.RefreshParent());
        }
Esempio n. 2
0
        public ActionResult Create(FormCollection coolection)
        {
            var model = new DeviceUseRecordModel();

            model.UserTime = DateTime.Now;
            try
            {
                this.TryUpdateModel <DeviceUseRecordModel>(model);
                this.IDKLManagerService.InsertUserRecord(model);
            }
            catch (Exception ex)
            {
                return(Back(ex.Message));
            }
            return(this.RefreshParent());
        }
Esempio n. 3
0
        public ActionResult Create()
        {
            var model = new DeviceUseRecordModel();

            return(View("Edit", model));
        }