//[HttpDelete]
        async public Task <IActionResult> DeletePost(int id)
        {
            bool result = await _repositoryManager.RemoveByIdAsync(id); // await repository.DeleteAsync(id);

            if (result == true)
            {
                return(Ok());
            }
            return(NotFound());
        }