public void EditPost(Post post)
 {
     var postToEdit = _repo.GetById(post.ID);
     postToEdit.Title = post.Title;
     postToEdit.Content = post.Content;
     postToEdit.CreatedOn = post.CreatedOn;
     _repo.Update(postToEdit);
 }
 public void CreatePost(Post post)
 {
     _repo.Add(post);
     _repo.Save();
 }