protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); var postBuilder = new PostBuilder(builder.Entity <Post>()); var pageBuilder = new PageBuilder(builder.Entity <Page>()); var categoryBuilder = new CategoryBuilder(builder.Entity <Category>()); var feedbackBuilder = new FeedbackBuilder(builder.Entity <Feedback>()); var applicationUserBuilder = new ApplicationUserBuilder(builder.Entity <ApplicationUser>()); }
public override ReportVM Build(ReportArgs args) { /* Some code to get roles here */ if (**validation code fails * *) { return new TInvalidModel { } } return(new TModel { FeedbackModel = FeedbackBuilder.Build(inputGrid.Report.Id), }); }