/// <summary> /// Get Urgency object by filter criteria /// </summary> /// <param name="urgencySearchDTO">urgencySearchDTO object</param> /// <returns>List of Urgency objects</returns> public List<Urgency> GetUrgencyByCriteria(UrgencySearchDTO urgencySearchDTO) { return GetAllUrgencies().Where(s => s.Name == urgencySearchDTO.Name).ToList<Urgency>(); }
/// <summary> /// Get Urgency object by filter criteria /// </summary> /// <param name="urgencySearchDTO">urgencySearchDTO object</param> /// <returns>List of Urgency objects</returns> public List<Urgency> GetUrgencyByCriteria(UrgencySearchDTO urgencySearchDTO) { var temp = requisitionDAO.GetUrgencyByCriteria(urgencySearchDTO); if (temp != null) return temp; ErrorMessage("Result not found"); return null; }