public Post DeletePost(int id) { Post postToDelete = GetOnePostElement(id); postRepo.DeleteOneElementInDb(postToDelete); return(postToDelete); }