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