public void Update(BarnCycleDto cycle) { GetCollection<BarnCycleDto> ().Save(cycle); }
public BarnCycleDto Read(BarnCycleDto dto) { var q = Query<BarnCycleDto>.EQ (b => b.Id, dto.Id); return GetCollection<BarnCycleDto> ().FindOne(q); }
public void Create(BarnCycleDto cycle) { GetCollection<BarnCycleDto> ().Insert(cycle); }