Пример #1
0
 public static sfPosts Create()
 {
     var p = new sfPosts();
     p.AuthorId = 2;
     p.Title="123gf";
     p.CreatedOn = DateTime.UtcNow;
  //   p.Type = PostType.Page;
     p.IsActive = true;
     return p;
 }
Пример #2
0
        public static sfPosts Create()
        {
            var p = new sfPosts();

            p.AuthorId  = 2;
            p.Title     = "123gf";
            p.CreatedOn = DateTime.UtcNow;
            //   p.Type = PostType.Page;
            p.IsActive = true;
            return(p);
        }