Exemple #1
0
        public void TestMethod1()
        {
            var svc = new AdminSvc();
            var obj = new Admin
            {
                Name     = "admin",
                Pwd      = "admin",
                AddTime  = DateTime.Now,
                EditTime = DateTime.Now,
                Remark   = "Default"
            };

            svc.Add(obj);
            var list = svc.GetAll();

            //var res = svc.Check("admin", "admin1");


            Assert.IsTrue(1 == 1);
        }
Exemple #2
0
        public ActionResult Add(XBD.Entity.Admin obj)
        {
            var res = svc.Add(obj);

            return(Json(res));
        }