public FollowingController(FollowingContext context) { _context = context; if (_context.Follows.Count() == 0) { _context.Follows.Add(new Following { FollowingID = 69420 }); _context.SaveChanges(); } }
public FollowRepository(FollowingContext followingContext, IMapper mapper) { this.followingContext = followingContext; this.mapper = mapper; }