public IActionResult AddOther(string shelterId, [FromBody] Shelter.shared.Other other) { other.ShelterId = shelterId; other = _dataAccess.AddOther(shelterId, other); return(Ok(other)); }
public Other AddOther(string shelterId, Shelter.shared.Other other) { _context.Animals.InsertOne(other); return(other); }