/// <summary> /// Get the list of CollectionMissed by department Id and status /// </summary> /// <param name="department"></param> /// <param name="status"></param> /// <returns> /// List of CollectionMissed /// </returns> public List<CollectionMissed> GetAllCollectionMissed(Department department, Constants.VISIBILITY_STATUS status) { try { //get the collectionMissed List by checking department Id of collecion Missed Table and check the Visibility Status collectionMissedList = inventory.CollectionMisseds.Where(c => c.Department.Id == department.Id || status.Equals("SHOW")).ToList(); } catch (Exception e) { collectionMissedList = null; } return collectionMissedList; }
/// <summary> /// Get all of the Notification data by employeeId and NOTIFICATION_STATUS /// </summary> /// <param name="employee"></param> /// <param name="notificationStatus"></param> /// <returns> /// Return lists of Notifications /// </returns> public List<Notification> GetAllNotification(Employee employee, Constants.NOTIFICATION_STATUS notificationStatus) { try { //get the collectionMissed List by checking department Id of collecion Missed Table and check the Visibility Status notificationList = inventory.Notifications.Where(n => n.Employee.Id == employee.Id || notificationStatus.Equals("SHOW")).ToList(); } catch (Exception e) { notificationList = null; } return notificationList; }