Ejemplo n.º 1
0
 public IActionResult Get()
 {
     return(Ok(_beanVarietyRepository.GetAll()));
 }
Ejemplo n.º 2
0
 public IActionResult Get()
 {
     // Ok = 200 OK Response with data in body
     return(Ok(_beanVarietyRepository.GetAll()));
 }
Ejemplo n.º 3
0
 public IActionResult Get()
 {
     //"Ok()" is used when want to return data
     // Likewise, "NoContent()" is used to indicate the action was successful, but there is not data to return
     return(Ok(_beanVarietyRepository.GetAll()));
 }
Ejemplo n.º 4
0
        public IActionResult Get()
        {
            var beans = _beanVarietyRepository.GetAll();

            return(Ok(beans));
        }
 public IActionResult Get()
 { // normally Views are returned, Ok is the 200 status code
     return(Ok(_beanVarietyRepository.GetAll()));
 }