Пример #1
0
 private PlatformConfigurationViewModel MapCommandToViewModel(CreatePlatformConfiguration command)
 {
     return(new PlatformConfigurationViewModel()
     {
         PlatformName = command.PlatformName,
         Username = command.Username,
         Password = command.Password
     });
 }
Пример #2
0
        public IActionResult CreatePlatformConfiguration(CreatePlatformConfiguration platformConfigurationCommand)
        {
            platformConfigurationCommands.Add(platformConfigurationCommand);
            return(Ok());

            //using (IDocumentSession session = _documentStore.OpenSession())
            //{
            //    session.Store(platformConfigurationCommand);
            //    session.SaveChanges();
            //    return Ok();
            //}
        }