public void Update(BlogDTO blog)
 {
     Mapper.CreateMap<BlogDTO, Blog>();
     Blog updateBlog = Mapper.Map<BlogDTO, Blog>(blog);
     Database.Blogs.Update(updateBlog);
     Database.Save();
 }
 public void Create(BlogDTO blog)
 {
     Blog newBlog = new Blog
     {
         Title = blog.Title,
         ProfileId = blog.ProfileId
     };
     Database.Blogs.Create(newBlog);
     Database.Save();
 }