Пример #1
0
        public async Task <IActionResult> PutRepair(long id, Repair repair)
        {
            if (id != repair.Id)
            {
                return(BadRequest());
            }

            _context.Entry(repair).State = EntityState.Modified;

            await _context.SaveChangesAsync();

            return(NoContent());
        }