public IActionResult Post([FromBody] Well well)
        {
            if (well == null)
            {
                return(BadRequest());
            }

            wellRep.Add(well);
            return(CreatedAtRoute("GetById", new { id = well.Id }, well));
        }
Beispiel #2
0
 public Well Add(Well addWell)
 {
     return(_wellRepository.Add(addWell));
 }