Esempio n. 1
0
        /// <summary>
        /// Registers a new System in the database
        /// </summary>
        /// <param name="system"></param>
        /// <returns></returns>
        public async Task <R3M_UserManagement_Domain.System> AddSystem(R3M_UserManagement_Domain.System system)
        {
            SystemModel systemModel = SystemFactory.Build(system);

            return(SystemFactory.Build(await AddAsync(systemModel)));
        }
Esempio n. 2
0
 /// <summary>
 /// Lists all registered systems
 /// </summary>
 /// <returns></returns>
 public async Task <IEnumerable <R3M_UserManagement_Domain.System> > ListSystems()
 {
     return(SystemFactory.Build(await Collection.Find(i => i.DeletedDate == null).ToListAsync()));
 }