public void UpdateScrimRoll(ScrimRollModel model) { using (ScrimRepository repo = new ScrimRepository()) { TPO.DL.Models.ScrimRoll entity = repo.GetScrimRollByID(model.ID); if (entity != null) { entity = Bind(model, entity); repo.SaveChanges(); } } }
public void UpdateTPOCurrentScrimModel(TPOCurrentScrimModel model) { using (ScrimRepository repo = new ScrimRepository()) { TPO.DL.Models.TPOCurrentScrim entity = repo.GetTPOCurrentScrimByID(model.ID); if (entity != null) { entity = Bind(model, entity); entity.ModifiedBy = "ETG QA"; entity.LastModified = DateTime.Now; repo.SaveChanges(); } } }