Exemplo n.º 1
0
        public void TestModify()
        {
            var response = service.GetById(1001);

            var app = response.Data;

            app.ModifyDate     = DateTime.Now;
            app.ModifyUserId   = 1;
            app.ModifyUserName = "******";
            var r = service.Modify(new Request <Button>
            {
                Obj = app
            });

            Assert.AreEqual(r.Data.ModifyUserName, "zpc");
        }
Exemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            var model = ButtonService.GetById(id);

            return(View(model));
        }