Esempio n. 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;
            }
        }
Esempio n. 2
0
 public BaseRepository(ApplicantContext context)
 {
     _context = context;
 }