public JsonResult Get() { var Endereco = _EnderecoService.FindAll(); string json = JsonConvert.SerializeObject(Endereco); return(Json(json)); }
public void FindAllSucess() { _enderecoRepository.Setup(x => x.FindAll()).Returns(EnderecoMock.GetEnderecos()); var result = _enderecoService.FindAll(); Assert.IsNotNull(result); }
public IActionResult Index() { var list = _enderecoService.FindAll(); return(View(list)); }