示例#1
0
 /// <summary>
 ///     Get presenter from Presenters collection
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 protected T GetPresenter <T>() where T : IPresenter
 {
     return((T)Presenters.FirstOrDefault(p => p is T));
 }
示例#2
0
 public PresentersDto GetPresentersById(string id)
 {
     return(Presenters.FirstOrDefault((presenter) => presenter.Id == id));
 }