public Entity SearchEntity(Entity entity) { //TODO :DI Entity result; Enum.TryParse(entity.Type, out EntityType type); using (IDal database = new DynamoDb()) { result = database.QueryEntity(type, entity.Id, entity.TimeStamp); } return(result); }