Exemple #1
0
 public static DalMarker ToDalMarker(this MarkerEntity markerEntity)
 {
     if (markerEntity != null)
     {
         return(new DalMarker()
         {
             Id = markerEntity.Id,
             UserId = markerEntity.UserId,
             ArticleId = markerEntity.ArticleId
         });
     }
     return(null);
 }
Exemple #2
0
 public void UpdateMarker(MarkerEntity marker)
 {
     markerRepository.Update(marker.ToDalMarker());
     uow.Commit();
 }