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