public override Log Save(Log instance) { using (var transaction = new FullContext()) { transaction.ErrorLogs.Add(instance); transaction.SaveChanges(); } return(instance); }
/// <summary> /// Calling Commit in any repository is the same thing as calling commit for the whole Web Request. /// It saves changes to all Models, Not only for this specific Model. /// </summary> public void Commit() { Context.SaveChanges(); }