public async Task <ActionResult <ConventionFee> > GetConventionFee(int id)
        {
            ConventionFee conventionfee = await _conventionFeeRepository.GetByIdAsync(id);

            if (conventionfee == null)
            {
                return(NotFound());
            }

            return(conventionfee);
        }
 public void Update(ConventionFee conventionfee)
 {
     _context.Entry(conventionfee).State = EntityState.Modified;
 }
        public async Task DeleteAsync(int conventionfeeId)
        {
            ConventionFee conventionfee = await _context.ConventionFees.FindAsync(conventionfeeId);

            _context.ConventionFees.Remove(conventionfee);
        }
 public async Task InsertAsync(ConventionFee conventionfee)
 {
     await _context.ConventionFees.AddAsync(conventionfee);
 }