public async Task <Ingredient> Add(Ingredient instance) { if (instance != null) { await _context.Ingredients.AddAsync(instance); await _context.SaveChangesAsync(); return(instance); } return(null); }
public async Task <User_Follows> Add(User_Follows instance) { if (instance != null) { await _context.User_Follows.AddAsync(instance); await _context.SaveChangesAsync(); return(instance); } return(null); }
public async Task <Post> Add(Post instance) { if (instance != null) { await _context.Posts.AddAsync(instance); await _context.SaveChangesAsync(); return(instance); } return(null); }
public async Task <Notification> Add(Notification instance) { if (instance != null) { await _context.Notifications.AddAsync(instance); await _context.SaveChangesAsync(); return(instance); } return(null); }