Пример #1
0
        public Member Create(Member member)
        {
            var cust = _context.Members.Add(member).Entity;

            _context.SaveChangesAsync();
            return(cust);
        }
Пример #2
0
        public FineType Create(FineType fineType)
        {
            var type = _context.FineTypes.Add(fineType).Entity;

            _context.SaveChangesAsync();
            return(type);
        }
Пример #3
0
 public Fine Create(Fine fine)
 {
     _context.Attach(fine).State = Microsoft.EntityFrameworkCore.EntityState.Added;
     _context.SaveChangesAsync();
     return(fine);
 }