Exemplo n.º 1
0
 public void ChangeEntity(Entities.Description description)
 {
     DAL.Entity.Description desc = descriptionHelper.GetDescriptions().First(d => d.Id == description.Id);
     desc.Text   = description.Text;
     desc.WordId = description.WordId;
     desc.Word   = wordHelper.GetWords().First(w => w.Id == description.WordId);
     descriptionHelper.ChangeEntity(desc);
 }
Exemplo n.º 2
0
 public void RemoveEntity(Entities.Description description)
 {
     descriptionHelper.RemoveEntity(descriptionHelper.GetDescriptions().First(d => d.Id == description.Id));
 }
Exemplo n.º 3
0
 public void AddEntity(Entities.Description description)
 {
     descriptionHelper.AddEntity(new DAL.Entity.Description {
         Text = description.Text, WordId = description.WordId
     });
 }