Beispiel #1
0
 public void Save(RegexUserBlog model, RegexUserBlogContent contentModel)
 {
     //dalRegexUserBlogContent = DalFactory.Get<DalRegexUserBlogContent>(this.Session);
     ITransaction tx = this.Session.BeginTransaction();
     using (tx)
     {
         this.SaveOrUpdate(model);
         dalRegexUserBlogContent.SaveOrUpdate(contentModel);
         tx.Commit();
     }
 }
Beispiel #2
0
 public ActionResult Edit(RegexUserBlog blogEntity, RegexUserBlogContent blogContentEntity,string c,int? p)
 {
     ModelBlogCreate model = new ModelBlogCreate() { BlogContentEntity = blogContentEntity, BlogEntity = blogEntity };
     model.Save();
     return Redirect(string.Format("/{0}?{1}p={2}&t={3}", FrontContext.CurrentRegexUser.Name, string.IsNullOrEmpty(c) ? "" : string.Format("c={0}&", c), p, (int)EnumExpressionType.myArticle));
 }
Beispiel #3
0
 public ActionResult Create(RegexUserBlog blogEntity,RegexUserBlogContent blogContentEntity)
 {
     ModelBlogCreate model = new ModelBlogCreate(){BlogContentEntity = blogContentEntity,BlogEntity = blogEntity};
     model.Create();
     return View(model);
 }
Beispiel #4
0
 public void Save(RegexUserBlog model, RegexUserBlogContent contentModel)
 {
     dbAccess.Save(model, contentModel);
 }
Beispiel #5
0
 public void Create(RegexUserBlog model, RegexUserBlogContent contentModel)
 {
     dbAccess.Create(model, contentModel);
 }