Example #1
0
 public int AuthAdd(mAuth mauth)
 {
     Auth auth = new Auth();
     auth_repo.Add(mauth.ToDb(auth));
     SubmitChanges();
     return auth.id;
 }
Example #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));
        }
Example #3
0
        public int AuthAdd(mAuth mauth)
        {
            Auth auth = new Auth();

            auth_repo.Add(mauth.ToDb(auth));
            SubmitChanges();
            return(auth.id);
        }
Example #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);
 }