Esempio n. 1
0
 public int AuthAdd(mAuth mauth)
 {
     Auth auth = new Auth();
     auth_repo.Add(mauth.ToDb(auth));
     SubmitChanges();
     return auth.id;
 }
Esempio n. 2
0
        public mAuth AuthUpdate(mAuth mauth)
        {
            Auth auth = auth_repo.Get(d => d.id == mauth.Id);

            mauth.ToDb(auth);
            SubmitChanges();
            return(new mAuth(auth));
        }
Esempio n. 3
0
        public int AuthAdd(mAuth mauth)
        {
            Auth auth = new Auth();

            auth_repo.Add(mauth.ToDb(auth));
            SubmitChanges();
            return(auth.id);
        }
Esempio n. 4
0
 public mAuth AuthUpdate(mAuth mauth)
 {
     Auth auth = auth_repo.Get(d => d.id == mauth.Id);
     mauth.ToDb(auth);
     SubmitChanges();
     return new mAuth(auth);
 }