Пример #1
0
 public void Exlcuir(EnderecoDTO.Excluir dto)
 {
     UnitOfWork.EnderecoRepository.Delete(GetEndereco(dto.Id));
     UnitOfWork.SaveChanges();
 }
Пример #2
0
 public IActionResult Exlcuir([FromBody] EnderecoDTO.Excluir dto)
 {
     _enderecoService.Exlcuir(dto);
     return(Ok());
 }