public async Task <bool> AddPost(Post post) { await _selahDbContext.AddAsync(post); return(Convert.ToBoolean( await _selahDbContext.SaveChangesAsync())); }
public async Task <Notification> AddNotification(Notification notification) { if (notification == null) { throw new ArgumentNullException(); } var notificationAdded = await _selahDbContext.AddAsync(notification); await _selahDbContext.SaveChangesAsync(); return(notificationAdded.Entity); }
public async Task <bool> AddVolunteer(Volunteer volunteer) { await selahDbContext.AddAsync(volunteer); return(Convert.ToBoolean(await selahDbContext.SaveChangesAsync())); }
public async Task <bool> AddOrder(Order order) { await _selahDbContext.AddAsync(order); return(Convert.ToBoolean(await _selahDbContext.SaveChangesAsync())); }
public async Task <bool> AddTestimony(Testimonial testimony) { await _selahDbContext.AddAsync(testimony); return(Convert.ToBoolean(await _selahDbContext.SaveChangesAsync())); }
public async Task <bool> AddComment(Comment comment) { await _selahDbContext.AddAsync(comment); return(Convert.ToBoolean(await _selahDbContext.SaveChangesAsync())); }
public async Task AddPostSuscribers(EmailSubscription emailSuscriber) { await _selahDbContext.AddAsync(emailSuscriber); await _selahDbContext.SaveChangesAsync(); }
public async Task <bool> AddCategory(Category category) { await _selahDbContext.AddAsync(category); return(Convert.ToBoolean(await _selahDbContext.SaveChangesAsync())); }
public async Task <bool> AddPicture(Picture picture) { await _selahDbContext.AddAsync(picture); return(Convert.ToBoolean(await _selahDbContext.SaveChangesAsync())); }
public async Task <bool> AddBook(Book book) { await _selahDbContext.AddAsync(book); return(Convert.ToBoolean(await _selahDbContext.SaveChangesAsync())); }