Example #1
0
        public CompetitionAgeCategory Update(CompetitionAgeCategory entity)
        {
            var obj = FindById(entity.IdAgeCategory);

            if (obj != null)
            {
                obj = entity;
            }
            _context.SaveChanges();
            return(obj);
        }
Example #2
0
 public CompetitionAgeCategory Add(CompetitionAgeCategory entity)
 {
     _context.CompetitionAgeCategory.Add(entity);
     _context.SaveChanges();
     return(entity);
 }