public async Task <bool> AddAsync(Characteristics characteristics) { try { await _context.AddAsync(characteristics); await _context.SaveChangesAsync(); } catch (Exception) { return(false); } return(true); }
public async Task <bool> AddAsync(Publisher publisher) { try { await _context.AddAsync(publisher); await _context.SaveChangesAsync(); } catch (Exception) { return(false); } return(true); }
public async Task <bool> AddAsync(Genre genre) { try { await _context.AddAsync(genre); await _context.SaveChangesAsync(); } catch (Exception) { return(false); } return(true); }
public async Task <bool> AddAsync(Author author) //AddAsync { try { await _context.AddAsync(author); await _context.SaveChangesAsync(); } catch (Exception) { return(false); } return(true); }
public async Task <bool> AddAsync(Category category) { try { await _context.AddAsync(category); await _context.SaveChangesAsync(); } catch (Exception) { return(false); } return(true); }