public async Task <IActionResult> PutMovie_Actor(int id, Movie_Actor movie_Actor) { if (id != movie_Actor.id) { return(BadRequest()); } _context.Entry(movie_Actor).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Movie_ActorExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutCategory(int id, Category category) { if (id != category.id) { return(BadRequest()); } _context.Entry(category).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CategoryExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutSeat_Status(int id, Seat_Status seat_Status) { if (id != seat_Status.id) { return(BadRequest()); } _context.Entry(seat_Status).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Seat_StatusExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }