public async Task <IActionResult> DeleteOne(int id) { await Db.Connection.OpenAsync(); var query = new BlogPostQuery(Db); var result = await query.deleteUserInformationById(id); if (result is null) { return(new NotFoundResult()); } return(new OkObjectResult(result)); }