public List <Comment> GetComments(DomainObject <int> targetObject) { return(targetObject != null?commentDao.GetAll(targetObject) : new List <Comment>()); }
/// <summary> /// Method for get all the comments /// </summary> /// <param name="all"></param> /// <returns></returns> public List <Comment> Search(bool all) { return(Repo.GetAll().ToList()); }