public IActionResult GetAllContact(int pp, int page) { var contactList = ContactRepo.GetAllContact(pp, page); if (contactList != null) { return(new ObjectResult(contactList)); } return(StatusCode(500)); }