Ejemplo n.º 1
0
 public DTO.HashTag Delete(DTO.HashTag item)
 {
     DAL.Context.HashTag entity = repository.Get(item.HashTagId);
     repository.Delete(entity);
     repository.SaveChanges();
     return(item);
 }
Ejemplo n.º 2
0
 public void CreateOrUpdate(DTO.HashTag item)
 {
     DAL.Context.HashTag entity = mapper.Map <DTO.HashTag, DAL.Context.HashTag>(item);
     repository.CreateOrUpdate(entity);
     repository.SaveChanges();
 }