public async Task <IActionResult> DeleteNationality([FromRoute] int id) { repo.Delete(await repo.GetByIdToDelete(id)); return(StatusCode(200, new { response = ApiMessages.RecordDeleted() })); }