/// <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)); }
public PresentersDto GetPresentersById(string id) { return(Presenters.FirstOrDefault((presenter) => presenter.Id == id)); }