public bool DeletePerson(long id) { if (!PersonsRepository.PersonExists(id)) { return(false); } PersonsRepository.DeletePerson(id); return(true); }
public async Task <IActionResult> DeletePerson(int id) { await personsRepository.DeletePerson(id); return(Ok(id)); }