/// <summary> /// Gets the source model. /// </summary> /// <returns></returns> public ISourceModel GetSourceModel() { try { return(SourceModel?.GetData()?.Any() == true ? SourceModel : default(ISourceModel)); } catch (Exception ex) { Fail(ex); return(default(ISourceModel)); } }