public void Create(List <string> arrCommands)
 {
     try
     {
         var shape = shapeSelector.Get(arrCommands);
         shapeRepository.Add(shape);
         logger.Log($"{shape.Name} created!");
     }
     catch (Exception ex)
     {
         logger.Log(ex.Message);
         ShowCommands();
     }
 }
 public ICommand <IWebHostBuilder> Get(IServerProfile parameter) => _selector.Get(parameter).Then().Add(_other).Get();
 public BuildHostContext Get() => _context.WithServer(_selector.Get(_profile).Execute).Configure(_profile);
 /// <summary>
 /// Gets entity by id.
 /// </summary>
 /// <param name="id">Entity Id.</param>
 /// <param name="withTracking">Flag defining if tracking should be turned on for selected entity.</param>
 /// <returns>Entity with specified Id.</returns>
 public virtual Task <TEntity> GetById(int id, bool withTracking = false)
 {
     return(Selector.Get(withTracking).FirstOrDefaultAsync(x => x.Id == id));
 }