public IActionResult Post([FromBody] Well well) { if (well == null) { return(BadRequest()); } wellRep.Add(well); return(CreatedAtRoute("GetById", new { id = well.Id }, well)); }
public Well Add(Well addWell) { return(_wellRepository.Add(addWell)); }