Exemple #1
0
        public async Task InsertData(ApplicantContext db)
        {
            var applicant = new Applicant {
                Id       = new Random().Next(),
                LastName = "LastName",
            };

            db.Applicants.Add(applicant);
            try
            {
                await db.SaveChangesAsync();
            }
            catch (Exception exp)
            {
                throw;
            }
        }
 public BaseRepository(ApplicantContext context)
 {
     _context = context;
 }