Example #1
0
        public async Task <User> Update(User objectToUpdate)
        {
            _context.Update(objectToUpdate);
            await _context.SaveChangesAsync();

            return(await _context.Users.FirstOrDefaultAsync(u => u.Id == objectToUpdate.Id));
        }
Example #2
0
        public async virtual Task <JobApplication> Update(JobApplication jobAppToUpdate)
        {
            _context.Update(jobAppToUpdate);
            await _context.SaveChangesAsync();

            return(jobAppToUpdate);
        }