public async Task <bool> CreatePersonWithIdetifiers(Person person) { try { ctx.People.Add(person); int i = await ctx.SaveChangesAsync(); if (i > 0) { return(true); } else { return(false); } } catch (Exception ex) { return(false); } }
public async Task SaveAsync() { await _context.SaveChangesAsync(); }