public static string ViewActivity(Int64 idSubactivity, Int64 idActivity, Int64 idUnit, Int64 idPath, int idCommunity, EpViewModeType ViewMode, Boolean isMooc, Boolean isFromReadOnly) { if (isMooc) { return(RootObjectMoocs.ViewActivity(idActivity, idUnit, idPath, idCommunity, ViewMode, isMooc, isFromReadOnly) + ((idSubactivity == 0) ? "" : "#subact-" + idSubactivity.ToString())); } return(ViewActivity(idActivity, idUnit, idPath, idCommunity, ViewMode, isMooc, isFromReadOnly) + ((idSubactivity == 0) ? "" : "#subact-" + idSubactivity.ToString())); }
public static string ViewActivity(Int64 ActivityId, Int64 UnitId, Int64 PathId, int CommunityId, EpViewModeType ViewMode, Boolean isMooc, Boolean isFromReadOnly) { if (isMooc) { return(RootObjectMoocs.ViewActivity(ActivityId, UnitId, PathId, CommunityId, ViewMode, isMooc, isFromReadOnly)); } return("Modules/EduPath/ViewActivity.aspx?AId=" + ActivityId + "&UId=" + UnitId + "&PId=" + PathId + "&ComId=" + CommunityId + "&ViewMode=" + (int)ViewMode + (isMooc ? "&isMooc=" + isMooc.ToString() : "") + "&freadonly=" + isFromReadOnly.ToString()); }