예제 #1
0
        public bool DeletePerson(long id)
        {
            if (!PersonsRepository.PersonExists(id))
            {
                return(false);
            }

            PersonsRepository.DeletePerson(id);
            return(true);
        }
예제 #2
0
        public async Task <IActionResult> DeletePerson(int id)
        {
            await personsRepository.DeletePerson(id);

            return(Ok(id));
        }