示例#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);
 }