Exemplo n.º 1
0
 internal static SystemModel Build(R3M_UserManagement_Domain.System system)
 {
     return(system == null ? null : new SystemModel
     {
         _id = ObjectId.Parse(system.Id),
         Initials = system.Initials,
         Name = system.Name
     });
 }
Exemplo n.º 2
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)));
        }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a new system
 /// </summary>
 /// <param name="system"></param>
 /// <returns></returns>
 public async Task <R3M_UserManagement_Domain.System> AddSystem(R3M_UserManagement_Domain.System system)
 {
     return(await _systemsRepository.AddSystem(system));
 }