public ActionResult Delete([FromQuery] int personId) { try { PersonsRepo.DeletePerson(personId); return(Ok(PersonsRepo.GetAllPersons())); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public ActionResult Delete([FromQuery] int personId) { try { PersonsRepo.DeletePerson(personId); return(Ok(PersonsRepo.GetAllPersons())); } catch (Exception ex) { return(BadRequest(ex.Message)); } }