コード例 #1
0
 public IActionResult AddOther(string shelterId, [FromBody] Shelter.shared.Other other)
 {
     other.ShelterId = shelterId;
     other           = _dataAccess.AddOther(shelterId, other);
     return(Ok(other));
 }
コード例 #2
0
 public Other AddOther(string shelterId, Shelter.shared.Other other)
 {
     _context.Animals.InsertOne(other);
     return(other);
 }