/// <summary>
 /// Add new tag to database.
 /// </summary>
 /// <param name="tag"></param>
 public void Add(TagEntity tag)
 {
     if (tag == null)
     {
         throw new ArgumentNullException(nameof(tag));
     }
     tagRepository.Create(tag.ToDalTag());
     uow.Commit();
 }
Beispiel #2
0
        public void Update(TagEntity tag)
        {
            if (ReferenceEquals(tag, null))
            {
                throw new ArgumentNullException(nameof(tag));
            }

            repository.Update(tag.ToDalTag());
            uow.Commit();
        }
Beispiel #3
0
 public void UpdateTag(TagEntity e)
 {
     uow.TagRepository.Update(e.ToDalTag());
     uow.Commit();
 }
Beispiel #4
0
 public void UpdateTag(TagEntity tag)
 {
     tagRepository.Update(tag.ToDalTag());
     uow.Commit();
 }
Beispiel #5
0
 /// <summary>
 /// Deletes tag entity
 /// </summary>
 /// <param name="entity">Base entity for removing</param>
 public void Delete(TagEntity entity)
 {
     tagRepository.Delete(entity.ToDalTag());
     uow.Commit();
 }
Beispiel #6
0
 public void Delete(TagEntity tag)
 {
     tagRepository.Delete(tag.ToDalTag());
     uow.Commit();
 }