コード例 #1
0
        } //Index


        public JsonResult ListagemClientesJson()
        {
            var lista = _applicationCliente.GetAll();
            //var lista = new { { email = "*****@*****.**"} };
            var settings = new JsonSerializerSettings();
            return Json(lista, settings);
        } //ListagemClientesJson
コード例 #2
0
 public ActionResult <IEnumerable <string> > Get()
 {
     try
     {
         return(Ok(app.GetAll()));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
コード例 #3
0
        public void Get()
        {
            var clientes = app.GetAll();

            Assert.True(clientes.Any());
        }