Asp.net Mvc开源论坛mvcforum中版源码


Asp.net Mvc开源论坛mvcforum中版源码
资源截图
代码片段和文件信息
using System.Web.Mvc;
using MVCForum.Domain.DomainModel;
using MVCForum.Domain.DomainModel.Attributes;
using MVCForum.Domain.Interfaces.Badges;
using MVCForum.Domain.Interfaces.Services;

namespace Badge.AuthorMarkAsSolution
{
    [Id(“d68c289a-e3f7-4f55-ae4f-fc7ac2147781“)]
    [Name(“AuthorMarkAsSolution“)]
    [DisplayName(“Badge.AuthorMarkAsSolution.Name“)]
    [Description(“Badge.AuthorMarkAsSolution.Desc“)]
    [Image(“UserMarkAsSolutionBadge.png“)]
    [AwardsPoints(2)]
    public class AuthorMarkAsSolutionBadge : IMarkAsSolutionBadge
    {
        private readonly ITopicService _topicService;
        private readonly ICategoryService _categoryService;

        public AuthorMarkAsSolutionBadge()
        {
            _topicService = DependencyResolver.Current.GetService();
            _categoryService = DependencyResolver.Current.GetService();
        }

        /// 
        /// Post is marked as the answer to a topic - give the topic author a badge
        /// 

        /// 
        public bool Rule(MembershipUser user)
        {
            var allCats = _categoryService.GetAll();
            return _topicService.GetSolvedTopicsByMember(user.Id allCats).Count >= 1;

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4636  2016-09-10 10:50  MVCForum.NuGetMVCForum.NuGet.csproj

    .......       216  2016-08-31 23:43  MVCForum.NuGetNuGet.config

    .......   3957976  2016-08-31 23:43  MVCForum.NuGetNuGet.exe

    .......      8242  2016-08-31 23:43  MVCForum.NuGetNuGetPackage.ps1

    .......      5466  2016-08-31 23:43  MVCForum.NuGetNuGetSetup.ps1

    .......      4487  2016-08-31 23:43  MVCForum.NuGetPackage.nuspec

     文件        901  2016-09-18 21:05  MVCForum.NuGetPropertiesAssemblyInfo.cs

    .......       403  2016-08-31 23:43  MVCForum.NuGet oolsinit.ps1

    .......      1811  2016-08-31 23:43  MVCForum.NuGet oolsinstall.ps1

    .......       387  2016-08-31 23:43  MVCForum.NuGet oolsuninstall.ps1

    .......     14901  2016-08-31 23:43  MVCForum.ServicesActivityService.cs

     文件      24725  2016-09-24 00:00  MVCForum.ServicesBadgeService.cs

    .......      5907  2016-08-31 23:43  MVCForum.ServicesBannedEmailService.cs

    .......      4284  2016-08-31 23:43  MVCForum.ServicesBannedWordService.cs

    .......      1103  2016-08-31 23:43  MVCForum.ServicesBlockService.cs

    .......      4349  2016-08-31 23:43  MVCForum.ServicesCacheService.cs

    .......      4499  2016-08-31 23:43  MVCForum.ServicesCategoryNotificationService.cs

    .......      7224  2016-08-31 23:43  MVCForum.ServicesCategoryPermissionForRoleService.cs

     文件      17161  2016-09-18 22:46  MVCForum.ServicesCategoryService.cs

    .......      6524  2016-08-31 23:43  MVCForum.ServicesConfigService.cs

    .......       652  2016-08-31 23:43  MVCForum.ServicesDataCachingCachingConfiguration.cs

     文件       4725  2016-09-17 20:20  MVCForum.ServicesDataContextMVCForumContext.cs

    .......       594  2016-08-31 23:43  MVCForum.ServicesDataMappingActivityMapping.cs

    .......       853  2016-08-31 23:43  MVCForum.ServicesDataMappingBadgeMapping.cs

    .......       716  2016-08-31 23:43  MVCForum.ServicesDataMappingBadgeTypeTimeLastCheckedMapping.cs

    .......       469  2016-08-31 23:43  MVCForum.ServicesDataMappingBannedEmailMapping.cs

    .......       518  2016-08-31 23:43  MVCForum.ServicesDataMappingBannedWordMapping.cs

    .......       657  2016-08-31 23:43  MVCForum.ServicesDataMappingBlockMapping.cs

    .......      1850  2016-08-31 23:43  MVCForum.ServicesDataMappingCategoryMapping.cs

    .......       571  2016-08-31 23:43  MVCForum.ServicesDataMappingCategoryNotificationMapping.cs

............此处省略1882个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)