예제 #1
0
        public void Delete(int competitiorId)
        {
            var competitior = new Competitor
            {
                Id = competitiorId
            };

            _competitors.Attach(competitior);

            _competitors.Remove(competitior);
        }
예제 #2
0
 public void Add(Competitor competitor)
 {
     _competitors.Add(competitor);
 }
예제 #3
0
        public void EditApproval(Competitor competitor)
        {

            _competitors.Attach(competitor);

            _dbContext.Entry(competitor).Property(x => x.IsApproved).IsModified = true;
            _dbContext.Entry(competitor).Property(x => x.Error).IsModified = true;
            _dbContext.Entry(competitor).Property(x => x.DormId).IsModified = true;
            _dbContext.Entry(competitor).Property(x => x.DormNumber).IsModified = true;

        }