public Member Create(Member member) { var cust = _context.Members.Add(member).Entity; _context.SaveChangesAsync(); return(cust); }
public FineType Create(FineType fineType) { var type = _context.FineTypes.Add(fineType).Entity; _context.SaveChangesAsync(); return(type); }
public Fine Create(Fine fine) { _context.Attach(fine).State = Microsoft.EntityFrameworkCore.EntityState.Added; _context.SaveChangesAsync(); return(fine); }