/// <summary> /// Method to create an CheckList. /// </summary> /// <param name="user"> Incoming parameter that specifies User of CheckList. </param> /// <param name="list"> Incoming parameter that specifies CheckList to create. </param> public void CreateCheckList(EquipCheckAppUser user, CheckList list) { service = (ICheckListSvc)GetServiceFromFactory(typeof(ICheckListSvc).Name); if (service != null) { service.StoreCheckList(user, list); } else { Debug.WriteLine("Unable to create list."); } }
/// <summary> /// Method to retrieve a user's checklists. /// </summary> /// <param name="user"> Incoming parameter that specifies checklist user. </param> /// <returns> Returns user's checklists. </returns> public List <CheckList> RetrieveCheckLists(EquipCheckAppUser user) { service = (ICheckListSvc)GetServiceFromFactory(typeof(ICheckListSvc).Name); if (service != null) { return(service.GetCheckLists(user)); } else { Debug.WriteLine("Unable to get list."); return(null); } }