示例#1
0
 public PostController(
     PostService service,
     UserService userService,
     HttpContextExtensible httpContext,
     UserPostCategoryRepository userPostCategories,
     UserPostTagRepository userPostTags,
     PostTagRepository postTagRepository
     ) :
     base(service)
 {
     _userService        = userService;
     _httpContext        = httpContext;
     _userPostCategories = userPostCategories;
     _userPostTags       = userPostTags;
     _postTagRepository  = postTagRepository;
 }
示例#2
0
 public SqlServerPostRepository(SourceNetContext db, UserPostCategoryRepository userPostCategories, UserPostTagRepository userPostTags) :
     base(db)
 {
     _userPostTags       = userPostTags;
     _userPostCategories = userPostCategories;
 }