/// <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))); }
/// <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())); }