Beispiel #1
0
        private void DeleteRecord()
        {
            Console.Write("Provide Record ID: ");
            int recordId = int.Parse(Console.ReadLine());

            _repo.Delete(recordId);
        }
 public IActionResult DeleteBirthdateById([FromRoute] int birthDateId)
 {
     try
     {
         _birthdateRepository.Delete(birthDateId);
         return(Ok());
     }
     catch (Exception e)
     {
         return(StatusCode(500, e));
     }
 }