public bool UpdatePerformance(PerformanceRequest request) { //ifexists //ifexists //ifbierzeudział if (!(_context.ArtistEvents.Any(x => x.idArtist == request.idArtist && x.idEvent == request.idEvent))) { //return new Exception("dfgh"); } if (DateTime.Now > request.performanceDate) { //blad } ///.... /// ArtistEvent ae = _context.ArtistEvents.Where(x => x.idArtist == request.idArtist && x.idEvent == request.idEvent) .FirstOrDefault(); //..if null; return(false); }
public IActionResult updatePerfomanceDate(int idArtist, int idEvent, PerformanceRequest request) { return(Ok()); }