Exemple #1
0
        public IActionResult Post([FromBody] NS_H20 h20)
        {
            if (h20 == null)
            {
                return(BadRequest("h20 is null."));
            }

            _dataRepository.Add(h20);
            return(CreatedAtRoute("Get", new { Id = h20.NS_H20_ID }, h20));
        }
Exemple #2
0
        public IActionResult Get(Guid id)
        {
            NS_H20 h20 = _dataRepository.Get(id);

            if (h20 == null)
            {
                return(NotFound("The H20 record couldn't be found."));
            }
            return(Ok(h20));
        }
Exemple #3
0
 public void Put(int id, [FromBody] NS_H20 value)
 {
 }