public void SaveProfile(pUserProfile prms, Bilet blt) { using (var db = getDb()) { var trns = db.Database.BeginTransaction(); try { SaveProfile(prms, blt, db); trns.Commit(); } catch (Exception ex) { trns.Rollback(); LogYaz(ex, blt); throw; } } }
public void SaveProfile(pUserProfile prms, Bilet blt, CuteModel db) { Update(new pUsers() { fullname = prms.fullname, id = blt.KullaniciId }, blt, db); new bllUsersMeta().Update(new Entity.UsersMeta.pUsersMeta() { List = prms.meta.Select(p => new pUsersMeta() { metaKey = p.Key, metaValue = p.Value }).ToList() }, blt, db); var info = Info(blt, db); new SessionManager().Login(blt.KullaniciId, info); }