/// <summary>
 /// Method for update a post
 /// </summary>
 /// <param name="id"></param>
 /// <param name="entity"></param>
 /// <returns></returns>
 public Post Update(int id, Post entity)
 {
     entity.UpdatedDate = DateTime.Now;
     Repo.Update(entity);
     Repo.Save();
     return(Repo.GetById(id));
 }