public void DeletePostById(int id, string name, bool role) { _postsRepository.DeletePostById(id, name, role); }