Exemple #1
0
        public async Task <IActionResult> PutHaandvaerker(int id, Haandvaerker item)
        {
            if (id != item.HaandvaerkerId)
            {
                return(BadRequest());
            }

            _context.Entry(item).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }
Exemple #2
0
        public async Task <IActionResult> PutVaerktoej(int id, Vaerktoejskasse item)
        {
            if (id != item.VtkId)
            {
                return(BadRequest());
            }

            _context.Entry(item).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }