Пример #1
0
 public void DeleteDetail(CastleDetail castleDetail)
 {
     _castleContext.CastleDetail.Remove(castleDetail);
 }
Пример #2
0
        public void AddCastleDetailForCastle(int castleId, CastleDetail castleDetail)
        {
            var castle = GetCastle(castleId, false);

            castle.CastleDetails.Add(castleDetail);
        }