public async Task Create() { if (TheaterRepository != null) { try { await TheaterRepository.Create(theater); } catch (Exception e) { Assert.Fail(e.Message); } } else { Assert.Fail(); } }
public async Task Create(Theater theater) { await TheaterRepository.Create(theater); }